/* (c) Amplify */

@charset "UTF-8";
@font-face {
    font-family: samim;
    font-style: normal;
    font-weight: 950;
    src: url("nshared/font/fonts/Samim-FD.ttf") format("ttf");
    src: url("nshared/font/fonts/Samim-FD.woff") format("woff"),
}


/* 
@font-face {
    font-family: Mathigon Symbol;
    font-style: normal;
    font-weight: 400;
    src: url(/fonts/mathigon-symbol.woff2) format("woff2"), url(/fonts/mathigon-symbol.woff) format("woff")
}

@font-face {
    font-family: Benton Sans;
    font-style: normal;
    font-weight: 400;
    src: url(/fonts/benton-sans-regular.woff2) format("woff2"), url(/fonts/benton-sans-regular.woff) format("woff")
}

@font-face {
    font-family: Benton Sans;
    font-style: italic;
    font-weight: 400;
    src: url(/fonts/benton-sans-regular-italic.woff2) format("woff2"), url(/fonts/benton-sans-regular-italic.woff) format("woff")
}

@font-face {
    font-family: Benton Sans;
    font-style: normal;
    font-weight: 700;
    src: url(/fonts/benton-sans-medium.woff2) format("woff2"), url(/fonts/benton-sans-medium.woff) format("woff")
}

@font-face {
    font-family: Amplify;
    font-style: normal;
    font-weight: 400;
    src: url(/fonts/amplify-regular.woff2) format("woff2"), url(/fonts/amplify-regular.woff) format("woff")
}

@font-face {
    font-family: Quicksand;
    font-style: normal;
    font-weight: 400;
    src: url(/fonts/quicksand-medium.woff2) format("woff2"), url(/fonts/quicksand-medium.woff) format("woff")
}

@font-face {
    font-family: Quicksand;
    font-style: normal;
    font-weight: 700;
    src: url(/fonts/quicksand-bold.woff2) format("woff2"), url(/fonts/quicksand-bold.woff) format("woff")
} */

* {
    -webkit-tap-highlight-color: transparent;
    color: inherit;
    cursor: inherit
}

article,
audio,
canvas,
figcaption,
figure,
footer,
header,
main,
nav,
section,
summary,
video {
    display: block
}

audio:not([controls]) {
    display: none;
    height: 0
}

svg {
    display: block;
    overflow: hidden
}

li svg,
p svg,
td svg {
    display: inline-block
}

circle,
g,
image,
line,
path,
polyline,
use {
    transform-box: fill-box;
    transform-origin: center
}

body,
html {
    margin: 0;
    padding: 0
}

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
 
    cursor: default;
    font-family: samim;
    font-size: 18px;
    line-height: 1.6;
    min-width: 320px;
    touch-action: manipulation
}

html[theme=dark] {
    background: #22212e
}

html:not(.ready) * {
    animation: none !important;
    transition: none !important
}

html:not(.is-tabbing) :focus {
    outline: none !important
}

html.grabbing,
html.grabbing * {
    cursor: grabbing !important
}

:lang(ru),
:lang(uk),
:lang(vi) {
    font-family: samim !important
}

body {
    color: #3a3645
}

html[theme=dark] body {
    color: hsla(0, 0%, 100%, .9)
}

main {
    padding-top: 54px
}

.container {
    margin: 0 auto;
    max-width: calc(100% - 48px);
    position: relative;
    width: 1080px
}

.container.narrow {
    width: 800px
}

.video-wrap {
    height: 0;
    overflow: hidden;
    padding-bottom: 56.25%;
    position: relative
}

.video-wrap iframe {
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%
}

p {
    hanging-punctuation: first;
    margin: 0 0 1em
}

h1 {
    font-size: 40px;
    font-weight: 400
}

h2 {
    font-size: 28px
}

h2,
h3 {
    font-weight: 600
}

h3 {
    font-size: 20px
}

h1,
h2 {
    font-family: samim;
    font-weight: 400
}

h1,
h2,
h3,
h4 {
    color: inherit;
    line-height: 1.1;
    margin: 2.5em 0 1.5em;
    padding: 0;
    text-rendering: optimizelegibility
}

.caption {
    color: #9d9ba2;
    font-size: 80%;
    margin: 0 0 .6em;
    text-align: left
}

a {
    cursor: pointer
}

a,
a:hover {
    text-decoration: none
}

a,
button {
    touch-action: manipulation
}

button {
    box-sizing: content-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none
}

.a,
label a,
ol a,
p a,
ul a {
    background-image: linear-gradient(transparent calc(100% - 3px), currentColor calc(100% - 3px), currentColor calc(100% - 1px), transparent calc(100% - 1px));
    background-repeat: no-repeat;
    background-size: 0 100%;
    color: #0f82f2;
    transition: color .2s, background-size .2s ease-in-out
}

.a:hover,
label a:hover,
ol a:hover,
p a:hover,
ul a:hover {
    background-size: 100% 100%
}

.small,
small {
    font-size: 80%
}

.b,
b,
strong {
    font-weight: 700
}

.i,
em,
i {
    font-style: italic
}

.text-center {
    text-align: center
}

ol,
ul {
    margin: 0 0 1em 2em;
    padding: 0;
    text-align: left
}

ol ol,
ol ul,
ul ol,
ul ul {
    margin: .5em 0 0 1.5em
}

li {
    margin: 0 0 .5em
}

.m-red {
    color: #cd0e66
}

.m-blue {
    color: #0f82f2
}

.m-green {
    color: #22ab24
}

.m-yellow {
    color: #fd8c00
}

.m-orange {
    color: #eb4726
}

.m-purple {
    color: #6d3bbf
}

.m-teal {
    color: #009ea6
}

.m-lime {
    color: #bfc212
}

.lgrey {
    color: #aaa
}

hr {
    background: #aaa;
    clear: both;
    display: block;
    height: 1px;
    margin: 1em 0;
    padding: 0
}

hr,
img {
    border: 0
}

img {
    vertical-align: middle;
    -ms-interpolation-mode: bicubic;
    height: auto;
    max-width: 100%
}

figure {
    margin: 0
}

.hidden,
[hidden] {
    display: none !important;
    visibility: hidden !important
}

table {
    border-collapse: collapse;
    border-spacing: 0
}

table,
td {
    border: none
}

td {
    vertical-align: top
}

table.fixed {
    table-layout: fixed
}

table.grid td {
    border-bottom: 1px solid #c5c2cc;
    border-right: 1px solid #c5c2cc
}

table.grid tr td:last-child {
    border-right: none
}

table.grid tr:last-child td {
    border-bottom: none
}

@media print {
    body,
    html {
        background: transparent;
        color: #000
    }
    h2,
    h3,
    p {
        orphans: 3;
        widows: 3
    }
    h1,
    h2,
    h3 {
        page-break-after: avoid
    }
    p a,
    p a:visited {
        text-decoration: underline
    }
    p a[href]:after {
        content: " (" attr(href) ")"
    }
    blockquote,
    img,
    pre,
    tr {
        page-break-inside: avoid
    }
    img {
        max-width: 100% !important
    }
    @page {
        margin: .5cm
    }
}

.polypad {
    --canvas-bg: #fff;
    --canvas-fg: #181824
}

[theme=dark] .polypad {
    --canvas-bg: #22212e;
    --canvas-fg: #e2e1e6
}

.row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center
}

.row.padded {
    margin: -20px
}

.row.padded>* {
    margin: 20px
}

.padded-thin>*>p:last-child,
.padded>*>p:last-child {
    margin-bottom: 0
}

.row .grow {
    flex-grow: 1
}

.row .shrink {
    flex-shrink: 1
}

.row>*>h2:first-child,
.row>*>h3:first-child {
    margin-top: 0
}

.padded-thin>*>p:last-child {
    margin-bottom: 0
}

.tooltip {
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    background: #181824;
    border: 1px solid #fff;
    border-radius: 16px;
    color: #fff;
    font-size: 13px;
    left: 50%;
    line-height: 18px;
    opacity: 0;
    padding: 2px 12px;
    pointer-events: none;
    position: absolute;
    top: -22px;
    transform: translateX(-50%);
    transition: opacity .1s;
    white-space: nowrap;
    z-index: 9999
}

.is-tabbing.not-mobile :focus>.tooltip,
.not-mobile :hover>.tooltip {
    opacity: .8
}

.warning {
    background: #181824;
    bottom: 0;
    display: block;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 900
}

.warning-body {
    left: 50%;
    max-width: calc(100% - 48px);
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%)
}

.warning-body svg {
    height: 100px;
    margin: 0 auto 20px;
    width: 100px
}

.warning-body p {
    background: #cd0e66;
    border-radius: 4px;
    color: #fff;
    padding: 8px 16px;
    text-align: center
}

.warning-body a:hover {
    color: #3f9bf5
}

.cookie-warning {
    background: #b50c5a;
    border-radius: 4px;
    bottom: 10px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, .3);
    box-sizing: border-box;
    color: #fff;
    left: 10px;
    line-height: 1.4;
    max-width: calc(100vw - 20px);
    padding: 10px 16px 12px;
    position: fixed;
    z-index: 800
}

.cookie-warning h2 {
    color: hsla(0, 0%, 100%, .8);
    font-size: 24px;
    font-weight: 100;
    margin: 0 0 6px
}

.cookie-warning p {
    margin-bottom: 12px
}

.cookie-warning .btn {
    color: #b50c5a
}

.cookie-warning .close {
    cursor: pointer;
    opacity: .6;
    padding: 12px;
    position: absolute;
    right: 2px;
    top: 2px;
    transition: opacity .2s
}

.cookie-warning .close:hover {
    opacity: 1
}

.cookie-warning x-icon {
    display: block
}

x-tabs {
    background: #f6f6f6;
    display: flex;
    margin-bottom: 60px;
    padding: 6px 0;
    position: sticky;
    top: 54px;
    z-index: 1
}

x-tabs a {
    background: #c5c2cc;
    flex-grow: 1;
    margin-right: 2px;
    padding: 3px 0;
    text-align: center;
    transition: background .2s;
    width: 200px
}

x-tabs a:first-child {
    border-radius: 6px 0 0 6px
}

x-tabs a:last-child {
    border-radius: 0 6px 6px 0;
    margin: 0
}

x-tabs a:focus,
x-tabs a:hover {
    background: #6aa2df
}

x-tabs a.active {
    background: #0f82f2;
    color: #fff
}

.global-footer {
    background: #656073;
    color: #fff;
    font-size: 15px;
    margin: 80px 0 0;
    padding: 32px 0 48px
}

.global-footer img {
    display: block
}

.global-footer .container {
    align-items: flex-start;
    display: flex;
    justify-content: space-between
}

.global-footer .dot {
    display: inline-block;
    margin: 0 8px
}

.global-footer .footer-row {
    margin: 0 0 3px;
    text-align: right
}

.global-footer .footer-row a {
    color: #fff;
    display: inline-block
}

.global-footer .footer-social {
    display: inline-block;
    margin: -2px 0 0;
    padding: 5px;
    transition: color .2s
}

.global-footer .footer-social x-icon {
    display: block
}

@media (max-width:900px) {
    .global-footer .container {
        display: block
    }
    .global-footer .container>a {
        display: block;
        margin: 0 auto 12px;
        width: -moz-fit-content;
        width: fit-content
    }
    .global-footer .footer-row {
        text-align: center
    }
}

.snackbar {
    left: 50%;
    position: fixed;
    top: 52px;
    transform: translateX(-50%);
    z-index: 500
}

x-alert {
    background: #000;
    border-radius: 6px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .3);
    color: #fff;
    display: none;
    font-size: 16px;
    line-height: 1.4;
    max-width: 300px;
    padding: 8px 20px;
    width: -moz-max-content;
    width: max-content
}

x-alert x-icon {
    float: left;
    margin: -2px 6px 20px -4px
}

x-alert.error {
    background: #b50c5a
}

x-alert.warn {
    background: #e47e00
}

x-alert.success {
    background: #1e9620
}

x-icon {
    display: inline-block;
    height: 24px;
    width: 24px;
    fill: currentColor
}

x-icon svg {
    display: block
}

x-icon[name=warning] {
    fill: #cd0e66
}

.button x-icon {
    margin: -10px 3px -10px -8px
}

.modal-background {
    -webkit-backdrop-filter: blur(4px);
    background: rgba(0, 0, 0, .8);
    bottom: 0;
    display: none;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    transition: background .4s;
    z-index: 400
}

.modal-background.light {
    background: hsla(0, 0%, 100%, .9)
}

html.webview .modal-background {
    top: 0
}

x-modal {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 32px rgba(0, 0, 0, .8);
    box-sizing: border-box;
    display: none;
    left: 50%;
    margin-top: 22px;
    max-height: calc(100vh - 84px);
    max-width: calc(100% - 40px);
    position: fixed;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 520px;
    z-index: 401
}

html[theme=dark] x-modal {
    background: #2d2c38
}

x-modal.light {
    box-shadow: 0 4px 20px rgba(0, 0, 0, .25)
}

html.webview x-modal {
    margin-top: 0;
    max-height: calc(100% - 40px)
}

x-modal .modal-body {
    box-sizing: border-box;
    height: 100%;
    max-height: calc(100vh - 84px);
    overflow: auto;
    padding: 24px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain
}

@media screen and (max-height:720px) {
    x-modal.interactive {
        top: 42px;
        transform: translate(-50%)
    }
}

.is-safari:not(.is-webview) x-modal,
.is-safari:not(.is-webview) x-modal .modal-body {
    max-height: calc(100vh - 200px)
}

x-modal h2 {
    margin-top: 0
}

x-modal h2 x-icon {
    margin: -6px 4px -6px -2px
}

x-modal h3 {
    margin: 1.5em 0 .8em
}

x-modal h3 x-icon {
    margin: 0 5px -5px 0
}

x-modal .btn-row {
    margin: 0;
    text-align: right
}

x-modal .form-large {
    margin: 0 -8px -10px
}

x-modal p:last-child:not(.btn-row),
x-modal ul:last-child {
    margin-bottom: 0
}

x-modal .form-checkbox {
    margin: 16px 0
}

x-modal hr {
    margin: 1.5em 0
}

x-modal .close {
    fill: rgba(0, 0, 0, .4);
    cursor: pointer;
    display: block;
    padding: 8px;
    position: absolute;
    right: 0;
    top: 0;
    transition: transform .2s, color .2s;
    z-index: 10
}

html[theme=dark] x-modal .close {
    fill: hsla(0, 0%, 100%, .4)
}

x-modal .close:hover {
    color: #000;
    transform: scale(1.4)
}

html[theme=dark] x-modal .close:hover {
    color: #fff
}

x-modal.video {
    background: #000;
    border-radius: 0;
    width: 1200px
}

x-modal.video .video-wrap {
    height: 0;
    padding-bottom: 56.25%;
    position: relative
}

x-modal.video iframe,
x-modal.video video {
    height: 100%;
    position: absolute;
    width: 100%
}

x-modal.video .close x-icon {
    fill: hsla(0, 0%, 100%, .8);
    top: -40px
}

button,
form,
input,
select,
textarea {
    border: none;
    margin: 0;
    padding: 0
}

input:invalid {
    box-shadow: none
}

button,
input,
select,
textarea {
    background: transparent;
    border: none;
    display: inline-block;
    font-family: samim;
    font-size: inherit;
    font-weight: inherit;
    margin: 0;
    padding: 0
}

input[type=date],
input[type=email],
input[type=password],
input[type=text],
textarea {
    cursor: text
}

button,
select {
    cursor: pointer
}

.form-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap
}

.form-row .form-field {
    flex-grow: 1;
    width: 180px
}

.form-field {
    display: block;
    padding: 8px;
    position: relative
}

.form-field input,
.form-field select,
.form-field textarea,
.form-field-style {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: no-repeat top 12px right 10px/24px 24px;
    background-color: #f6f6f6;
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: 4px;
    box-sizing: border-box;
    color: #000;
    display: block;
    line-height: 1.4em;
    padding: 18px 16px 4px;
    transition: border .2s, background .2s, box-shadow .2s;
    width: 100%
}

html[theme=dark] .form-field input,
html[theme=dark] .form-field select,
html[theme=dark] .form-field textarea,
html[theme=dark] .form-field-style {
    background-color: #43424d;
    border-color: hsla(0, 0%, 100%, .5);
    color: #fff
}

.form-field input:not([disabled]):focus,
.form-field input:not([disabled]):hover,
.form-field select:not([disabled]):focus,
.form-field select:not([disabled]):hover,
.form-field textarea:not([disabled]):focus,
.form-field textarea:not([disabled]):hover,
.form-field-style:not([disabled]):focus,
.form-field-style:not([disabled]):hover {
    background-color: #eee
}

html[theme=dark] .form-field input:not([disabled]):focus,
html[theme=dark] .form-field input:not([disabled]):hover,
html[theme=dark] .form-field select:not([disabled]):focus,
html[theme=dark] .form-field select:not([disabled]):hover,
html[theme=dark] .form-field textarea:not([disabled]):focus,
html[theme=dark] .form-field textarea:not([disabled]):hover,
html[theme=dark] .form-field-style:not([disabled]):focus,
html[theme=dark] .form-field-style:not([disabled]):hover {
    background-color: #64646d
}

.form-field input:not([disabled]):focus,
.form-field select:not([disabled]):focus,
.form-field textarea:not([disabled]):focus,
.form-field-style:not([disabled]):focus {
    border-color: #0f82f2;
    box-shadow: 0 0 0 3px rgba(15, 130, 242, .5);
    outline: none
}

.form-field input:not([disabled]):focus+.placeholder,
.form-field select:not([disabled]):focus+.placeholder,
.form-field textarea:not([disabled]):focus+.placeholder,
.form-field-style:not([disabled]):focus+.placeholder {
    color: #0f82f2
}

.form-field input[disabled],
.form-field select[disabled],
.form-field textarea[disabled],
.form-field-style[disabled] {
    cursor: default !important;
    opacity: .6
}

.form-field input::-moz-placeholder {
    opacity: 0
}

.form-field input::placeholder {
    opacity: 0
}

.form-field input:-moz-placeholder-shown {
    padding: 11px 16px
}

.form-field input:placeholder-shown {
    padding: 11px 16px
}

.form-field input:-moz-placeholder-shown+.placeholder {
    transform: none
}

.form-field input:placeholder-shown+.placeholder {
    transform: none
}

.form-field input.dirty:not(:focus),
.form-field select.dirty:not(:focus) {
    padding-right: 36px
}

.form-field input.dirty:not(:focus).valid,
.form-field input.dirty:not(:focus):valid,
.form-field select.dirty:not(:focus).valid,
.form-field select.dirty:not(:focus):valid {
    background-image: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22%2322ab24%22%20d%3D%22m19.7%206.3-.2-.4-.3-.2c-.1-.1-.3%200-.4%200a36.6%2036.6%200%200%200%20-9.8%208.4%2036.1%2036.1%200%200%200%20-4.8-2.9h-.5l-1%20.9a.4.4%200%200%200%20-.1.3c0%20.2%200%20.3.1.4a72.1%2072.1%200%200%201%206.6%207h.4a.5.5%200%200%200%20.4-.2c3.8-6.8%205.7-9.6%209.4-13%20.2.1.2-.1.2-.3z%22%2F%3E%3C%2Fsvg%3E")
}

.form-field input.dirty:not(:focus).invalid,
.form-field input.dirty:not(:focus):invalid,
.form-field select.dirty:not(:focus).invalid,
.form-field select.dirty:not(:focus):invalid {
    background-image: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%3E%3Crect%20x%3D%2210%22%20y%3D%228%22%20width%3D%224%22%20height%3D%2212%22%20fill%3D%22%23fff%22%2F%3E%3Cpath%20fill%3D%22%23cd0e66%22%20d%3D%22M22.1%2C19.5l-9.2-16a1%2C1%2C0%2C0%2C0-1.8%2C0l-9.2%2C16A1%2C1%2C0%2C0%2C0%2C2.7%2C21H21.3A1%2C1%2C0%2C0%2C0%2C22.1%2C19.5Zm-8.7-11v2.4l-.4%2C4.4H11.1l-.4-4.4V8.5ZM12%2C19.4a1.6%2C1.6%2C0%2C0%2C1-1.6-1.6%2C1.6%2C1.6%2C0%2C1%2C1%2C3.2%2C0A1.6%2C1.6%2C0%2C0%2C1%2C12%2C19.4Z%22%2F%3E%3C%2Fsvg%3E");
    border-color: #cd0e66
}

.form-field textarea {
    height: auto;
    padding: 10px 16px;
    resize: vertical
}

.form-field textarea::-moz-placeholder {
    color: #aaa;
    opacity: 1;
    -moz-transition: color .2s;
    transition: color .2s
}

.form-field textarea::placeholder {
    color: #aaa;
    opacity: 1;
    transition: color .2s
}

.form-field textarea:active::-moz-placeholder,
.form-field textarea:focus::-moz-placeholder {
    color: #0f82f2
}

.form-field textarea:active::placeholder,
.form-field textarea:focus::placeholder {
    color: #0f82f2
}

.form-field select {
    background-image: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22%234d4d4d%22%20d%3D%22m19.9%207.5a1.4%201.4%200%200%200%20-2.1%200l-5.8%205.8-5.8-5.8a1.4%201.4%200%200%200%20-2.1%200%201.5%201.5%200%200%200%200%202.1l6.8%206.9a1.6%201.6%200%200%200%202.2%200l6.8-6.9a1.4%201.4%200%200%200%200-2.1z%22%2F%3E%3C%2Fsvg%3E");
    padding-right: 40px
}

.form-field .placeholder {
    color: #aaa;
    left: 24px;
    line-height: 1.4em;
    pointer-events: none;
    position: absolute;
    top: 19px;
    transform: translateY(-7px) scale(.7);
    transform-origin: top left;
    transition: transform .2s, color .2s;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none
}

.radio-row {
    display: flex;
    margin: 1em 2em
}

.radio-row label {
    display: block;
    flex-grow: 1
}

.radio-row span {
    border: 2px solid #0f82f2;
    border-right-style: none;
    cursor: pointer;
    display: block;
    text-align: center;
    transition: background .2s
}

.radio-row span:hover {
    background: rgba(15, 130, 242, .4)
}

.radio-row label:first-child span {
    border-radius: 6px 0 0 6px
}

.radio-row label:last-child span {
    border-radius: 0 6px 6px 0;
    border-right-style: solid
}

.radio-row input:checked+span {
    background: #0f82f2;
    color: #fff
}

.radio-row input {
    display: none
}

.form-checkbox {
    cursor: pointer;
    display: block;
    margin: 16px 8px;
    min-height: 28px;
    padding-left: 40px;
    position: relative
}

.form-checkbox input {
    left: 5px;
    opacity: 0;
    position: absolute;
    top: 7px
}

.form-checkbox .control {
    background: #f6f6f6;
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: 4px;
    height: 22px;
    left: 0;
    position: absolute;
    top: 2px;
    transition: border .2s, background .2s, box-shadow .2s;
    width: 22px
}

.form-checkbox .control:after {
    background: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2221%22%20height%3D%2221%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22white%22%20d%3D%22m19.7%206.3-.2-.4-.3-.2c-.1-.1-.3%200-.4%200a36.6%2036.6%200%200%200%20-9.8%208.4%2036.1%2036.1%200%200%200%20-4.8-2.9h-.5l-1%20.9a.4.4%200%200%200%20-.1.3c0%20.2%200%20.3.1.4a72.1%2072.1%200%200%201%206.6%207h.4a.5.5%200%200%200%20.4-.2c3.8-6.8%205.7-9.6%209.4-13%20.2.1.2-.1.2-.3z%22%2F%3E%3C%2Fsvg%3E");
    content: " ";
    display: block;
    height: 21px;
    left: 1px;
    position: absolute;
    top: 0;
    transform: scale(0);
    transition: transform .4s cubic-bezier(.33, 1.9, .52, .7);
    width: 21px
}

.form-checkbox input:focus+.control,
.form-checkbox:hover .control {
    background: #eee;
    border-color: #0f82f2
}

.form-checkbox input:focus+.control {
    box-shadow: 0 0 0 3px rgba(15, 130, 242, .5);
    outline: none
}

.form-checkbox input:checked+.control {
    background: #0f82f2
}

.form-checkbox input:checked+.control:after {
    transform: none
}

.form-checkbox input:focus:checked+.control,
.form-checkbox:hover input:checked+.control {
    border-color: #053563
}

.form-error {
    color: #cd0e66;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    margin: 8px;
    text-align: center
}

.form-error x-icon {
    margin: 0 2px -4px 0
}

.btn {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #181824;
    border: none;
    border-radius: 24px;
    color: hsla(0, 0%, 100%, .95);
    cursor: pointer;
    display: inline-block;
    font-weight: 600;
    height: 2em;
    letter-spacing: .2px;
    line-height: 2em;
    min-width: 48px;
    outline: none;
    padding: 0 1.2em;
    text-align: center;
    width: auto;
    -webkit-touch-callout: none;
    transition: transform .3s, background .2s, color .2s, box-shadow .2s, opacity .2s
}

.btn:hover {
    transform: scale(1.08)
}

.btn:active {
    transform: scale(.92)
}

.btn.on,
.btn:hover {
    background-color: #504b5c;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
    color: #fff;
    z-index: 10
}

html.is-tabbing .btn:focus {
    outline: 2px solid #181824;
    outline-offset: 2px
}

.btn.disabled,
.btn[disabled] {
    background-color: #ddd !important;
    box-shadow: none;
    color: #999 !important;
    cursor: default;
    pointer-events: none
}

.btn x-icon {
    margin: 0 6px -6px 0;
    opacity: .95;
    transition: opacity .2s;
    fill: currentColor
}

.btn:focus x-icon,
.btn:hover x-icon {
    opacity: 1
}

.btn-small {
    height: 1.6em;
    line-height: 1.6em;
    padding: 0 .8em
}

.btn-row {
    margin: -10px
}

.btn-row .btn {
    margin: 10px
}

.btn-red {
    background-color: #cd0e66
}

.btn-red:focus,
.btn-red:hover {
    background-color: #ef1579
}

html.is-tabbing .btn-red:focus {
    outline: 2px solid #ef1579
}

.btn-blue {
    background-color: #0f82f2
}

.btn-blue:focus,
.btn-blue:hover {
    background-color: #3696f4
}

html.is-tabbing .btn-blue:focus {
    outline: 2px solid #3696f4
}

.btn-green {
    background-color: #22ab24
}

.btn-green:focus,
.btn-green:hover {
    background-color: #29cd2b
}

html.is-tabbing .btn-green:focus {
    outline: 2px solid #29cd2b
}

.btn-yellow {
    background-color: #fd8c00
}

.btn-yellow:focus,
.btn-yellow:hover {
    background-color: #ff9e27
}

html.is-tabbing .btn-yellow:focus {
    outline: 2px solid #ff9e27
}

.btn-amplify {
    background-color: #f37321
}

.btn-amplify:focus,
.btn-amplify:hover {
    background-color: #f58b48
}

html.is-tabbing .btn-amplify:focus {
    outline: 2px solid #f58b48
}

.btn-white {
    border: 1px solid #aaa
}

.btn-white,
.btn-white:focus,
.btn-white:hover {
    background: #fff;
    color: #3a3645
}

html.is-tabbing .btn-white:focus {
    outline-color: #656073
}

.btn.facebook {
    background-color: #1878f2
}

.btn.facebook:focus,
.btn.facebook:hover {
    background-color: #3f8ff4
}

html.is-tabbing .btn.facebook:focus {
    outline: 2px solid #3f8ff4
}

.btn.twitter {
    background-color: #00b6f1
}

.btn.twitter:focus,
.btn.twitter:hover {
    background-color: #1bc7ff
}

html.is-tabbing .btn.twitter:focus {
    outline: 2px solid #1bc7ff
}

.btn.pinterest {
    background-color: #cb2027
}

.btn.pinterest:focus,
.btn.pinterest:hover {
    background-color: #df353c
}

html.is-tabbing .btn.pinterest:focus {
    outline: 2px solid #df353c
}

.btn.reddit {
    background-color: #ff5700
}

.btn.reddit:focus,
.btn.reddit:hover {
    background-color: #ff7229
}

html.is-tabbing .btn.reddit:focus {
    outline: 2px solid #ff7229
}

.input-field {
    -webkit-appearance: none;
    -moz-appearance: textfield;
    background: hsla(0, 0%, 100%, .1);
    border: 1px solid hsla(0, 0%, 100%, .16);
    border-radius: 5px;
    color: inherit;
    cursor: text;
    display: block;
    line-height: 24px;
    padding: 0;
    text-align: center;
    transition: border .2s, background .2s, box-shadow .2s, color .2s
}

.input-field::-moz-placeholder {
    color: hsla(0, 0%, 100%, .5)
}

.input-field::placeholder {
    color: hsla(0, 0%, 100%, .5)
}

.input-field::-webkit-inner-spin-button,
.input-field::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0
}

.light-ui .input-field {
    background-color: rgba(95, 95, 95, .15);
    border-color: #a6a6a6
}

.light-ui .input-field::-moz-placeholder {
    color: rgba(58, 54, 69, .5)
}

.light-ui .input-field::placeholder {
    color: rgba(58, 54, 69, .5)
}

.input-field:focus {
    background-color: hsla(0, 0%, 100%, .18);
    border-color: #0f82f2;
    box-shadow: 0 0 0 3px rgba(15, 130, 242, .5);
    outline: none
}

select.input-field {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22rgba(255%2C%20255%2C%20255%2C%200.5)%22%20d%3D%22m19.9%207.5a1.4%201.4%200%200%200%20-2.1%200l-5.8%205.8-5.8-5.8a1.4%201.4%200%200%200%20-2.1%200%201.5%201.5%200%200%200%200%202.1l6.8%206.9a1.6%201.6%200%200%200%202.2%200l6.8-6.9a1.4%201.4%200%200%200%200-2.1z%22%2F%3E%3C%2Fsvg%3E");
    background-position: top 6px right 5px;
    background-repeat: no-repeat;
    background-size: 16px 16px;
    cursor: pointer;
    padding: 0 24px 0 8px;
    text-align: left;
    width: auto
}

select.input-field option {
    color: initial
}

.light-ui select.input-field {
    background-image: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22%23a6a6a6%22%20d%3D%22m19.9%207.5a1.4%201.4%200%200%200%20-2.1%200l-5.8%205.8-5.8-5.8a1.4%201.4%200%200%200%20-2.1%200%201.5%201.5%200%200%200%200%202.1l6.8%206.9a1.6%201.6%200%200%200%202.2%200l6.8-6.9a1.4%201.4%200%200%200%200-2.1z%22%2F%3E%3C%2Fsvg%3E")
}

input.toggle[type=checkbox] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    height: 0;
    position: absolute;
    width: 0
}

input.toggle+.control {
    background: hsla(0, 0%, 100%, .3);
    border-radius: 12px;
    content: "";
    cursor: pointer;
    display: block;
    height: 10px;
    padding: 1px 0;
    transition: background .2s;
    width: 32px
}

.light-ui input.toggle+.control {
    background: rgba(95, 95, 95, .3)
}

input.toggle+.control:after {
    background-color: #9d9ba2;
    border-radius: 12px;
    content: "";
    display: block;
    height: 18px;
    margin: -4px -1px;
    transition: transform .2s;
    width: 18px
}

.light-ui input.toggle+.control:after {
    background-color: #a6a6a6
}

input.toggle:checked+.control {
    background: #0f82f2
}

input.toggle:checked+.control:after {
    background: #ebebec;
    transform: translateX(16px)
}

.light-ui input.toggle:checked+.control {
    background: rgba(15, 130, 242, .5)
}

.light-ui input.toggle:checked+.control:after {
    background: #0f82f2
}

input.toggle:indeterminate+.control:after {
    background: #c4c3c7;
    transform: translateX(8px)
}

.light-ui input.toggle:indeterminate+.control:after {
    background: #3771a9
}

.is-tabbing input.toggle:focus+.control {
    outline: auto
}

header {
    background: #fff;
    box-shadow: 0 0 12px rgba(0, 0, 0, .2);
    color: #3a3645;
    display: flex;
    height: 54px;
    justify-content: space-between;
    position: fixed;
    top: 0;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    white-space: nowrap;
    width: 100%;
    z-index: 401
}

header .home {
    align-items: center;
    display: flex;
    justify-content: center;
    margin-right: auto
}

header #logo,
header nav {
    display: flex
}

header #logo {
    padding: 9px 8px 9px 24px;
    position: relative
}

header #logo svg {
    border-radius: 6px;
    height: 36px;
    margin-right: 12px;
    width: 36px
}

header #logo span {
    color: #888;
    font-size: 22px;
    line-height: 36px
}

header #logo .amp {
    color: #f37321;
    font-family: samim;
    font-size: 28px;
    margin-right: 24px
}

@media screen and (max-width:580px) {
    header #logo .amp {
        display: none
    }
}

@media screen and (max-width:450px) {
    header #logo span {
        display: none
    }
}

header #skip-nav {
    border: 1px solid #fff;
    left: -9999px;
    position: absolute;
    top: 2px;
    z-index: 9999
}

html.is-tabbing header #skip-nav:focus {
    left: 2px
}

header .btn {
    margin: 9px 4px
}

header .nav-btn {
    padding: 13px;
    position: relative
}

header .nav-btn x-icon {
    display: block
}

header .nav-btn .tooltip {
    top: 58px
}

header .nav-btn.contest {
    background-image: radial-gradient(closest-side, rgba(253, 140, 0, .4), rgba(253, 140, 0, .15) 40%, transparent 80%)
}

header x-popup {
    position: relative
}

header .popup-body {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .2), 0 0 20px rgba(0, 0, 0, .2);
    display: none;
    font-size: 18px;
    padding: 6px 0;
    position: absolute;
    right: -6px;
    top: 50px;
    z-index: 1
}

header .nav-link {
    box-sizing: border-box;
    display: block;
    padding: 3px 14px;
    position: relative;
    text-align: left;
    white-space: nowrap;
    width: 100%
}

header .nav-link x-icon {
    margin: 0 8px -5px -2px
}

header .nav-link input.toggle+.control {
    background: rgba(0, 0, 0, .15);
    display: inline-block;
    margin: 0 -2px 0 12px
}

header .nav-link .subtitle {
    display: block;
    font-size: 14px;
    margin: -4px 0 0 36px;
    opacity: .6
}

header a.nav-link,
header button.nav-link {
    cursor: pointer;
    line-height: inherit
}

header hr {
    background: currentColor;
    margin: 6px 0;
    opacity: .3
}

header .app-title {
    color: #9d9ba2;
    font-size: 16px;
    font-weight: 700;
    margin: 3px 22px 0;
    text-transform: uppercase
}

header .app-grid {
    display: flex;
    flex-wrap: wrap;
    font-size: 14px;
    line-height: 1.2;
    padding: 0 8px;
    text-align: center;
    white-space: normal;
    width: 280px
}

header .app-grid a {
    border-radius: 8px;
    display: block;
    padding: 8px 2px;
    width: 88px
}

header .app-grid img {
    background: #3a3645;
    border-radius: 8px;
    display: block;
    height: 60px;
    margin: 0 auto 5px;
    width: 60px
}

header .app-grid a,
header .nav-btn,
header a.nav-link,
header button.nav-link {
    transition: background .2s
}

header .app-grid a:focus,
header .app-grid a:hover,
header .nav-btn:focus,
header .nav-btn:hover,
header a.nav-link:focus,
header a.nav-link:hover,
header button.nav-link:focus,
header button.nav-link:hover {
    background-color: rgba(0, 0, 0, .15)
}

header.dark,
html[theme=dark] header {
    background: #292735;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .3);
    color: hsla(0, 0%, 100%, .8)
}

header.dark .popup-body,
html[theme=dark] header .popup-body {
    background: #3a3645;
    box-shadow: 0 0 0 1px hsla(0, 0%, 100%, .2)
}

header.dark .app-grid a:focus,
header.dark .app-grid a:hover,
header.dark .nav-btn:focus,
header.dark .nav-btn:hover,
header.dark a.nav-link:focus,
header.dark a.nav-link:hover,
header.dark button.nav-link:focus,
header.dark button.nav-link:hover,
html[theme=dark] header .app-grid a:focus,
html[theme=dark] header .app-grid a:hover,
html[theme=dark] header .nav-btn:focus,
html[theme=dark] header .nav-btn:hover,
html[theme=dark] header a.nav-link:focus,
html[theme=dark] header a.nav-link:hover,
html[theme=dark] header button.nav-link:focus,
html[theme=dark] header button.nav-link:hover {
    background-color: hsla(0, 0%, 100%, .15)
}

header.dark input.toggle+.control,
html[theme=dark] header input.toggle+.control {
    background-color: #5f5f5f
}

header.dark input.toggle:checked+.control,
html[theme=dark] header input.toggle:checked+.control {
    background-color: #0f82f2
}

x-modal#language {
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    width: 540px
}

.locale-list {
    -moz-column-count: 3;
    column-count: 3;
    -moz-column-gap: 0;
    column-gap: 0
}

@media (max-width:560px) {
    .locale-list {
        -moz-column-count: 2;
        column-count: 2
    }
}

@media (max-width:420px) {
    .locale-list {
        -moz-column-count: 1;
        column-count: 1
    }
}

.locale-link {
    border-radius: 6px;
    display: block;
    margin: 2px 0;
    padding: 4px 8px;
    transition: background .2s;
    -webkit-column-break-inside: avoid;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.locale-link:hover {
    background: rgba(0, 0, 0, .15)
}

html[theme=dark] .locale-link:hover {
    background: hsla(0, 0%, 100%, .15)
}

.locale-link img {
    margin-right: 8px
}

x-modal#login,
x-modal#signup {
    width: 480px
}

x-modal#login .modal-body,
x-modal#signup .modal-body {
    padding: 24px 16px 12px
}

x-modal#login .btn-row,
x-modal#signup .btn-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center
}

x-modal#login .btn-row .btn,
x-modal#signup .btn-row .btn {
    margin: 6px
}

x-modal#login .btn-row .a,
x-modal#signup .btn-row .a {
    cursor: pointer;
    margin-right: 12px
}

x-modal#login .form-checkbox,
x-modal#signup .form-checkbox {
    margin: 8px
}

x-modal#login .btn-row button,
x-modal#signup .btn-row button {
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: 20px 20px
}

x-modal#login form.loading .btn-row button,
x-modal#signup form.loading .btn-row button {
    background-image: url(/images/loading-white.gif);
    color: transparent;
    pointer-events: none
}

x-modal#login .hr,
x-modal#signup .hr {
    background: #c5c2cc;
    height: 1px;
    margin: 22px 8px;
    position: relative
}

x-modal#login .hr span,
x-modal#signup .hr span {
    background: #fff;
    color: #9d9ba2;
    display: block;
    font-size: 14px;
    left: 50%;
    line-height: 1;
    margin-top: -7px;
    padding: 0 12px;
    position: absolute;
    text-align: center;
    transform: translateX(-50%);
    white-space: nowrap
}

html[theme=dark] x-modal#login .hr span,
html[theme=dark] x-modal#signup .hr span {
    background: #2d2c38
}

.tile {
    transform-box: view-box;
    transform-origin: 0 0
}

.tile .handle:not(.persistent),
.tile .outline {
    display: none
}

.tile.active .handle,
.tile.active .link-handle,
.tile.active .outline {
    display: block !important
}

.stroke-change .tile .outline,
.tile.no-handles.active .handle {
    display: none !important
}

.tile:focus {
    outline: none
}

x-polypad:not(.author-mode) .hidden-tile {
    display: none
}

x-polypad:not(.author-mode) .locked-tile {
    pointer-events: none
}

.geo-path.hidden-tile,
.geo-point.hidden-tile,
.hidden-tile>:not(.outline,
.handle) {
    opacity: .4
}

.link-handle {
    fill: #0f82f2;
    stroke: transparent;
    stroke-width: 10
}

.link-dot {
    stroke: var(--canvas-bg);
    fill: #0f82f2;
    stroke-width: 3
}

.link-bar {
    stroke: #0f82f2;
    stroke-width: 5px;
    fill: none;
    cursor: move
}

.link-bar path.dashed {
    stroke-dasharray: 6px 10px;
    stroke-dashoffset: 8px
}

.group-outline,
.rotate-bar,
.tile .handle,
.tile .outline {
    stroke-width: calc(6px*var(--canvas-zoom))
}

.group-outline,
.rotate-bar,
.tile .outline {
    stroke: var(--canvas-fg);
    fill: none
}

.hidden-tile .outline,
.locked-tile .outline {
    stroke-dasharray: 10px 16px
}

.rotate-circle,
.tile .handle {
    fill: var(--canvas-fg);
    r: calc(10px*var(--canvas-zoom))
}

.tile path.handle {
    stroke: var(--canvas-fg)
}

.group-outline,
.rotate-bar {
    pointer-events: none
}

.group-shadow {
    fill: var(--canvas-fg);
    opacity: 15%
}

.active .linkage-handle {
    fill: var(--canvas-fg) !important
}

.rotate-circle,
.tile circle.handle {
    stroke: transparent;
    stroke-width: 8px
}

.rotate-circle {
    cursor: move
}

.balance,
.number-grid-cell circle,
.number-tile,
.polygon-tile {
    stroke: var(--canvas-bg);
    stroke-width: 1px
}

.high-contrast .balance,
.high-contrast .number-grid-cell circle,
.high-contrast .number-tile,
.high-contrast .polygon-tile {
    stroke: var(--canvas-fg);
    stroke-width: 2px
}

.prime-move,
.prime-segment:hover {
    stroke: var(--canvas-fg);
    stroke-width: 3px
}

.grid-axis {
    stroke-width: 3px
}

.active .grid-axis {
    stroke-width: 6px
}

.axis-gridlines {
    stroke-width: 2px;
    opacity: .15;
    pointer-events: none
}

.penrose-circles {
    fill: none;
    stroke-width: 2px;
    stroke: #fff;
    opacity: .4
}

.dice-face {
    stroke-width: 4px
}

.dice-dot {
    fill: #fff;
    opacity: .85
}

.balance-beam {
    fill: none;
    stroke-width: 8px
}

.active .balance,
.active .balance-beam,
.active .bucket {
    stroke: var(--canvas-fg);
    stroke-width: 6px
}

.dropzone.highlight-dropzone {
    stroke: var(--dropzone-stroke, var(--canvas-fg)) !important;
    stroke-dasharray: 8px 12px;
    stroke-dashoffset: 4px;
    stroke-width: 5px !important
}

.dropzone.highlight-dropzone:hover,
.dropzone.hover-dropzone {
    fill: var(--dropzone-stroke, var(--canvas-fg));
    fill-opacity: .08;
    stroke-width: 5px !important;
    stroke-dasharray: 0
}

.spinner {
    fill: var(--canvas-fg);
    stroke: var(--canvas-bg)
}

.spinner,
pp-tiles .spinner {
    stroke-width: 1px
}

.utensil .glass {
    fill: hsla(258, 9%, 78%, .7)
}

.utensil .ticks {
    pointer-events: none;
    stroke-width: .6;
    stroke: var(--canvas-fg);
    stroke-linecap: butt
}

.utensil .compass-frame,
.utensil .compass-legs {
    fill: #c5c2cc
}

.utensil .compass-needle,
.utensil .compass-top {
    fill: #656073
}

.utensil .compass-screw {
    fill: #c5c2cc
}

.utensil .compass-pencil {
    stroke: #656073
}

.utensil text {
    font-size: 12px;
    fill: var(--canvas-fg)
}

.polypad.dark .utensil .glass {
    fill: rgba(101, 96, 115, .7)
}

.polypad.dark .utensil .compass-legs {
    fill: #656073
}

.polypad.dark .utensil .compass-needle {
    fill: #c5c2cc
}

.reflect {
    transform: scaleX(-1);
    transform-box: inherit
}

.dot-cell {
    fill: none;
    stroke-width: 20px;
    fill-opacity: .3
}

.bead-gradient {
    stroke: var(--canvas-bg);
    fill: url(#sphere-gradient);
    pointer-events: none
}

.active .bead-gradient {
    stroke: var(--canvas-fg);
    stroke-width: 6px
}

.clock-handle {
    stroke: transparent;
    stroke-width: 16px;
    cursor: move;
    transform-origin: bottom center
}

.axis-label,
.geo-label {
    stroke: var(--canvas-bg);
    stroke-width: 4px;
    paint-order: stroke;
    stroke-linejoin: round
}

.is-safari .axis-label,
.is-safari .geo-label {
    stroke: none
}

.axis-label {
    font-size: 15px;
    font-weight: 700
}

.geo-label {
    font-size: 16px
}

.no-labels text {
    display: none
}

.text-label {
    font-size: 16px;
    font-weight: 600;
    transform-box: fill-box;
    transform-origin: center
}

.number-grid-cell.active circle {
    stroke: var(--canvas-fg);
    stroke-width: 6px
}

.number-grid-cell text {
    font-size: 24px
}

.card-label path,
.card-label rect {
    fill: var(--canvas-fg)
}

.card-label text {
    font-size: 13px;
    font-weight: 600;
    stroke: none;
    fill: var(--canvas-bg)
}

.hidden-input {
    display: none;
    height: 0;
    overflow: hidden;
    position: absolute;
    top: 0;
    transform: scale(0);
    width: 0
}

.problem-box {
    cursor: text;
    transition: stroke .3s, fill .3s
}

.correct .problem-box {
    stroke: #22ab24 !important;
    fill: rgba(34, 171, 36, .25)
}

.incorrect .problem-box {
    stroke: #cd0e66 !important;
    fill: rgba(205, 14, 102, .25)
}

.active .problem-box {
    stroke-width: 6px
}

.problem-text {
    font-size: 32px;
    fill: var(--canvas-fg);
    color: var(--canvas-fg);
    cursor: text;
    text-align: center
}

.problem-marker {
    transform: scale(0);
    transition: transform .2s cubic-bezier(.33, 1.9, .52, .7)
}

.problem-marker.show {
    transform: none
}

.action-card-text {
    cursor: text;
    display: none;
    font-size: 20px;
    text-align: center
}

@keyframes cursor {
    0%,
    to {
        opacity: 1
    }
    50% {
        opacity: 0
    }
}

.equation {
    transform-origin: 0 0
}

.equation line,
.equation path {
    fill: none;
    stroke: currentColor;
    transform-box: view-box;
    transform-origin: top left
}

.equation text {
    font-family: samim;
    dominant-baseline: text-before-edge;
    stroke: currentColor;
    fill: currentColor
}

.equation text.font-normal {
    font-family: samim;
    font-size: 90%;
    baseline-shift: -10%
}

.equation .placeholder {
    fill: currentColor;
    opacity: .3
}

.equation .cursor {
    stroke: #0f82f2;
    stroke-width: 1.5px;
    animation: cursor 1s step-end infinite
}

.equation .range {
    fill: #87c1f9
}

.text-alignment {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center
}

.text-edit {
    font-size: 20px;
    line-height: 1.5;
    padding: 2px 8px;
    -webkit-user-modify: read-write-plaintext-only;
    -webkit-user-select: text;
    -moz-user-select: text;
    user-select: text;
    width: -moz-fit-content;
    width: fit-content;
    word-wrap: normal;
    pointer-events: none
}

.text-edit[contenteditable] {
    pointer-events: all
}

.text-input {
    cursor: text;
    font-size: 20px;
    line-height: 1.4em
}

.text-input::-webkit-scrollbar {
    cursor: default;
    width: 22px
}

.text-input::-webkit-scrollbar-thumb {
    background-clip: padding-box;
    background-color: var(--scroll-color);
    border: 8px solid transparent;
    border-radius: 20px
}

.text-input.question-style {
    font-size: 32px;
    padding: 0 2px;
    text-align: center;
    text-wrap: nowrap
}

.text-input.question-style::-webkit-scrollbar {
    display: none
}

.text-input.text-style {
    font-size: var(--input-font-size);
    padding: 2px 8px;
    text-align: left;
    text-wrap: wrap;
    word-wrap: break-word
}

.geo-path {
    fill: none;
    stroke: currentColor;
    stroke-width: 3px
}

.geo-path.fill {
    fill: currentColor;
    stroke: none;
    opacity: .5
}

.geo-path.fill.hover {
    opacity: .8
}

.geo-point {
    fill: currentColor
}

.geo-point.intersection {
    stroke: currentColor;
    stroke-width: 3px;
    fill: var(--canvas-bg)
}

svg:not(:hover) .geo-point.pending {
    display: none !important
}

.geo-shadow {
    display: none;
    stroke-width: 10px;
    stroke: currentColor;
    fill: none
}

.table-tile {
    background: var(--canvas-bg);
    border-left: 1px solid var(--border);
    border-top: 1px solid var(--border);
    display: grid;
    width: -moz-fit-content;
    width: fit-content
}

.table-tile.active {
    cursor: text
}

.table-selection {
    stroke: var(--canvas-fg);
    fill: var(--canvas-fg);
    fill-opacity: 10%;
    pointer-events: none;
    stroke-width: 5px
}

.table-cell {
    border-bottom: 1px solid var(--border);
    border-right: 1px solid var(--border);
    box-sizing: border-box;
    font-size: 18px;
    height: 50px;
    line-height: 45px;
    max-width: 200px;
    min-width: 100px;
    padding: 2px 8px;
    text-align: center;
    white-space: pre;
    -webkit-user-modify: read-write-plaintext-only;
    color: var(--canvas-fg);
    -webkit-user-select: text;
    -moz-user-select: text;
    user-select: text
}

.table-cell.header {
    background: var(--header);
    font-weight: 700
}

.table-cell:focus {
    outline: none
}

.table-cell:focus:empty {
    content: "​";
    display: inline
}

.table-cell .table-color {
    border-radius: 15px;
    display: inline-block;
    height: 30px;
    margin-bottom: -8px;
    width: 30px
}

.table-hidden {
    left: 0;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    top: 0
}

.chart-line {
    fill: none;
    stroke-width: 3
}

.chart-outline {
    fill: none;
    stroke-width: 6px;
    stroke: var(--canvas-fg)
}

.chart-shadow {
    stroke-width: 10px;
    fill: none;
    opacity: .4
}

.donut-hole {
    fill: var(--canvas-bg)
}

.chart-focussed {
    cursor: pointer
}

@keyframes speaker-move {
    0% {
        transform: none
    }
    50% {
        transform: translateX(3px)
    }
    to {
        transform: none
    }
}

@keyframes metronome {
    0% {
        transform: rotate(-30deg)
    }
    50% {
        transform: rotate(30deg)
    }
    to {
        transform: rotate(-30deg)
    }
}

.effects-speaker-move {
    animation: speaker-move .1s
}

.polypad svg.overlay,
x-polypad {
    stroke-linecap: round;
    stroke-linejoin: round;
    text-anchor: middle
}

.polypad {
    --tile-stroke: var(--canvas-bg);
    --stroke-adjustment: 1;
    --stroke-width-0: 1px;
    --stroke-width-1: 2px;
    --stroke-width-2: 4px;
    --stroke-width-3: 6px
}

.polypad .high-contrast {
    --tile-stroke: var(--canvas-fg);
    --stroke-width-0: 2px;
    --stroke-width-1: 2px;
    --stroke-width-2: 4px
}

x-polypad {
    display: block;
    overflow: hidden;
    touch-action: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    text-anchor: middle;
    background: var(--canvas-bg)
}

x-polypad .canvas {
    height: 100%;
    outline: none;
    width: 100%
}

x-polypad .html-overlay,
x-polypad .html-overlay>* {
    left: 0;
    position: absolute;
    top: 0
}

x-polypad .cursors {
    pointer-events: none
}

x-polypad .cursors circle {
    fill: none;
    stroke: var(--canvas-bg);
    stroke-width: 4
}

x-polypad .svg-focus {
    fill: none;
    stroke: var(--canvas-bg);
    stroke-width: calc(7px*var(--canvas-zoom))
}

x-polypad .svg-focus.inner {
    stroke: var(--focus-color);
    stroke-width: calc(3px*var(--canvas-zoom))
}

x-polypad .selection {
    stroke: #87c1f9;
    stroke-width: var(--canvas-zoom);
    fill: rgba(135, 193, 249, .5);
    display: none
}

x-polypad .stroke {
    stroke-width: 3px;
    fill: none
}

x-polypad .stroke.marker {
    stroke-width: 8px
}

x-polypad .stroke.highlighter {
    stroke-width: 24px;
    mix-blend-mode: multiply;
    opacity: .4
}

x-polypad .stroke.cut {
    stroke: var(--canvas-fg);
    stroke-dasharray: 10px
}

.dark x-polypad .stroke.highlighter {
    mix-blend-mode: screen
}

x-polypad[data-tool=text] {
    cursor: text
}

x-polypad[data-tool=pan] {
    cursor: move
}

x-polypad[data-tool=cutPolygon],
x-polypad[data-tool=geoPending],
x-polypad[data-tool=geo] {
    cursor: crosshair
}

x-polypad .geo-paths,
x-polypad .geo-points,
x-polypad .geo-shadows,
x-polypad .grid,
x-polypad .selection,
x-polypad .strokes,
x-polypad:not([data-tool=move]) .tiles {
    pointer-events: none
}

x-polypad[data-tool=pen] .no-sketching {
    pointer-events: all
}

x-polypad .grid {
    opacity: var(--grid-opacity, .25)
}

x-polypad.high-contrast .grid {
    opacity: 1
}

x-polypad .geo-shadows {
    opacity: .3
}

x-polypad .grid-pattern line,
x-polypad .grid-pattern rect {
    stroke: var(--canvas-fg);
    fill: none
}

x-polypad .grid-pattern .filled,
x-polypad .grid-pattern circle {
    fill: var(--canvas-fg);
    stroke: none
}

x-polypad .image-drop {
    background: rgba(15, 130, 242, .1);
    border: 6px dashed #0f82f2;
    box-sizing: border-box;
    display: none;
    height: 100%;
    left: 0;
    pointer-events: none;
    position: absolute;
    top: 0;
    width: 100%
}

x-polypad .tile-error {
    background: #fec680;
    border-radius: 6px;
    bottom: calc(100% + 10px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .1);
    color: #000;
    font-size: 16px;
    left: -12px;
    line-height: 1.4;
    padding: 5px 10px;
    position: relative;
    position: absolute;
    text-align: left;
    top: auto;
    transform-origin: 24px bottom -6px;
    width: 260px
}

x-polypad .tile-error:after {
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #fec680;
    content: "";
    display: block;
    left: 50%;
    left: 24px;
    margin-left: -8px;
    position: absolute;
    top: 100%
}

x-polypad .tile-error button {
    color: #0f82f2;
    cursor: pointer
}

x-polypad .tile-error button:focus,
x-polypad .tile-error button:hover {
    text-decoration: underline
}

x-polypad.handdrawn .canvas {
    filter: url(#handdrawn)
}

x-polypad.handdrawn .geo-paths,
x-polypad.handdrawn .strokes {
    filter: url(#pencil)
}

x-polypad .bg-icon {
    bottom: -60px;
    opacity: .1;
    pointer-events: none;
    position: absolute;
    right: -60px
}

x-polypad .rotate-label {
    background-color: #181824;
    border: 1px solid;
    border-color: var(--canvas-bg);
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 2px 6px 0;
    pointer-events: none;
    position: absolute;
    top: 0
}

x-alert.generic {
    background: #3a3645;
    font-size: 22px;
    margin-top: 10px
}

.polypad {
    --ui-bg: #3a3645;
    --ui-fg: hsla(0, 0%, 100%, .6);
    --ui-fg-active: hsla(0, 0%, 100%, .9);
    --ui-fg-hover: #fff;
    --ui-fg-inactive: hsla(0, 0%, 100%, .35);
    --ui-fg-disabled: hsla(0, 0%, 100%, .25);
    --ui-button: hsla(0, 0%, 100%, .2);
    --ui-button-disabled: hsla(0, 0%, 100%, .1);
    --ui-border: none;
    --ui-shadow: 0 3px 8px rgba(0, 0, 0, .3);
    --ui-radius: 6px;
    --ui-hover: transparent;
    --sidebar-bg: #292735;
    --sidebar-fg: hsla(0, 0%, 100%, .8);
    --sidebar-border: 1px solid #716e79;
    --focus-color: #0f82f2
}

.polypad.large-ui {
    font-family: samim;
    --ui-border: 2px solid #716e79;
    --ui-shadow: 0 6px 0 #716e79;
    --ui-radius: 14px;
    --ui-hover: #29548a;
    --sidebar-border: var(--ui-border)
}

.polypad.light-ui {
    --ui-bg: #ededed;
    --ui-fg: #5f5f5f;
    --ui-fg-active: #4c4c4c;
    --ui-fg-hover: #303030;
    --ui-fg-inactive: rgba(95, 95, 95, .35);
    --ui-fg-disabled: rgba(95, 95, 95, .25);
    --ui-shadow: 0 2px 6px rgba(0, 0, 0, .2), 0 0 0 1px rgba(0, 0, 0, .1);
    --ui-button: rgba(95, 95, 95, .25);
    --ui-button-disabled: rgba(95, 95, 95, .1);
    --sidebar-bg: #ededed;
    --sidebar-fg: #5f5f5f;
    --sidebar-border: 1px solid #a6a6a6
}

.polypad.large-ui.light-ui {
    --ui-hover: #c1d8ee;
    --ui-border: 2px solid #a6a6a6;
    --ui-shadow: 0 6px 0 #a6a6a6;
    --sidebar-border: var(--ui-border)
}

x-color-picker {
    display: flex;
    height: 90px;
    justify-content: center;
    position: relative;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    width: 270px
}

x-color-picker.custom .palette,
x-color-picker:not(.custom) .sliders {
    display: none
}

x-color-picker .palette {
    display: flex;
    flex-wrap: wrap
}

x-color-picker .palette button {
    box-sizing: border-box;
    cursor: pointer;
    height: 30px;
    width: 30px
}

x-color-picker .palette button.active {
    border: 3px solid #fff;
    border-radius: 4px;
    transform: scale(1.2)
}

html.is-tabbing x-color-picker .palette button:focus,
x-color-picker .palette button.active {
    z-index: 1
}

x-color-picker .sliders {
    margin: -3px 0;
    width: 100%
}

x-color-picker .slider-row {
    align-items: center;
    display: flex;
    height: 24px;
    justify-content: space-between
}

x-color-picker .slider-row label {
    display: block;
    font-size: 14px;
    height: 24px;
    opacity: .8
}

x-color-picker .slider {
    border-radius: 4px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2);
    height: 14px;
    margin: 6px 0;
    position: relative;
    width: 180px
}

x-color-picker .handle {
    background: #fff;
    border-radius: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .4);
    cursor: grab;
    height: 20px;
    margin: -3px -10px;
    position: absolute;
    transition: transform .2s;
    width: 20px
}

x-color-picker .handle.active,
x-color-picker .handle:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, .3);
    transform: scale(1.2)
}

x-color-picker .input-field {
    font-size: 13px;
    height: 20px;
    line-height: 20px;
    width: 44px
}

body,
html {
    height: 100%
}

main {
    height: calc(100% - 54px)
}

.polypad {
    display: flex;
    flex-direction: column
}

.tangram {
    height: calc(100% - 120px);
    position: relative;
    touch-action: none
}

.tangram-background {
    background: 50% no-repeat;
    background-size: contain;
    height: 100%;
    opacity: .2;
    position: absolute;
    width: 100%
}

x-polypad {
    height: 100%;
    position: relative;
    width: 100%
}

.group-outline,
.rotate-bar,
.tile.active .outline {
    stroke-width: 4px
}

.polygon-tile {
    stroke-width: .6px
}

.rotate-circle {
    r: 8
}

.buttons {
    bottom: 8px;
    display: flex;
    position: absolute;
    right: 0
}

.tangram-btn {
    box-sizing: content-box;
    display: block;
    height: 28px;
    margin-right: 8px;
    min-width: 0;
    padding: 6px;
    width: 28px
}

.tangram-btn x-icon {
    display: block;
    margin: 2px
}

.tangram-btn#brush.active x-icon:first-child,
.tangram-btn#brush:not(.active) x-icon:nth-child(2) {
    display: none
}

.tangram-footer {
    background: #c5c2cc;
    display: flex;
    height: 120px;
    position: relative
}

.tangram-footer-tabs {
    width: 100px;
    z-index: 2
}

.tangram-footer-tab {
    background: #aaa;
    cursor: pointer;
    font-size: 16px;
    height: 30px;
    line-height: 30px;
    padding: 0 10px
}

.tangram-footer-tab:hover {
    background: #888
}

.tangram-footer-tab.active {
    /* background: #3a3645; */
    background: #c5c2cc;
    color: #fff;
    position: relative
}

.tangram-footer-tab.active:after {
    border-bottom: 15px solid transparent;
    /* border-left: 6px solid #3a3645; */
    border-left: 6px solid #c5c2cc;
    border-top: 15px solid transparent;
    content: "";
    display: block;
    left: 100%;
    margin-top: -15px;
    position: absolute;
    top: 50%
}

.tangram-footer-tiles {
    flex: 1 1;
    overflow: auto;
    position: relative;
    z-index: 1;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain
}

.tangram-footer-wrap {
    display: flex;
    margin: 0 auto;
    padding: 4px 12px 0;
    width: 880px
}

.tangram-tile {
    cursor: pointer;
    font-size: 14px;
    line-height: 16px;
    opacity: .5;
    text-align: center;
    width: 150px
}

.tangram-tile img {
    display: block;
    height: 88px;
    width: 88px
}

.tangram-tile.active,
.tangram-tile:hover {
    opacity: .85
}

.color-picker {
    background: #c5c2cc;
    box-sizing: border-box;
    height: 100%;
    left: 0;
    padding: 15px;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: -1
}

.color-picker.active {
    z-index: 10
}

x-color-picker .switch {
    fill: #000
}

x-color-picker .slider-row label {
    color: rgba(0, 0, 0, .6)
}