:root {
    --text: #fff;
}

.dark :root {
    --text: #000;
}

html,
body {
    display: flex;
    /* align-items: center; */
    overflow: hidden;
    background: var(--mio-theme-color-background) !important;
}

* {
    /* font-family: 'HarmonyOS_Sans_SC_Medium'; */
    line-height: 1.5rem;
    color: var(--mio-theme-color-on-background);
    vertical-align: top;
}

*:not(.dialog) {
    transition: all .15s linear;
}

ul,
li {
    list-style: none;
}

*:not(input, textarea, div.txt, div.list) {
    user-select: none;
}

body>.right.container {
    /* width: 10.8rem; */
    height: 100vh;
    justify-content: center;
    overflow: auto;
    background-attachment: fixed;
}

@media screen and (min-width: 960px) {
    body>.right.container {
        width: calc(90vw - 96px);
        position: absolute;
        right: calc(12vw - 96px);
    }
}

@media screen and (max-width: 960px) {
    body>.right.container {
        text-align: center;
    }

    .welcome-box.container .ng-button {
        display: none;
    }
}

body>.right.container>* {
    zoom: 1.4;
}

body>.left.container>a {
    color: inherit;
    display: block;
    height: 2rem;
    line-height: 2rem;
    margin: .2rem 0 0 1rem;
}

body>.left.container>a {
    color: inherit;
    display: block;
    height: 2rem;
    line-height: 2rem;
    margin: .2rem 0 0 1rem;
}

.welcome-box.container {
    height: 14rem;
    margin: 1rem;
    padding: 4rem;
    background: url("../img/unnamed.webp") no-repeat no-repeat;
    background-size: cover;
}

.dark-mode.welcome-box.container {
    background: url("../img/unnamed-1.webp") no-repeat no-repeat;
    background-size: cover;
}

input[type="checkbox"].dark-mode {
    background: var(--mio-theme-color-surface-1);
}


input[type="checkbox"].dark-mode:before:not(:checked) {
    background: var(--mio-theme-color-extensions-caution-container);
}


.box.container {
    overflow: hidden;
    padding: .8rem 1.1rem .9rem 1.3rem;
    margin: 1rem;
    margin-bottom: .7rem;
    /* background-color: rgba(24, 98, 180, .12); */
    /* background: rgba(127, 187, 255, .06); */
    border-radius: .8rem;
}

body>div.right.container>div.welcome-box.box.container {
    margin-top: 3.6rem !important;
}

.top.bar {
    position: fixed;
    /* top: 0; */
    background: rgba(96, 137, 235, .08);
    height: 2.6rem;
    width: 100%;
    z-index: 10;
    backdrop-filter: blur(.8rem);
    -webkit-backdrop-filter: blur(.8rem);
}

.top.bar span:first-child {
    /* position: relative; */
    /* left: calc(49.4% - 2vw - 2rem); */
    /* position: absolute; */
    /* right: 1rem; */
    display: inline-block;
    height: 2rem;
    background-color: rgba(48, 128, 180, .12);
    padding: 0 .5rem 0 .3rem;
    margin: .3rem;
    border-radius: 10rem;
}

.top.bar span>img {
    height: 1.4rem;
    width: 1.4rem;
    margin-top: .3rem;
    border-radius: 10rem;
}

.top.bar span>span {
    position: relative;
    bottom: .4rem
}

/* .welcome-box.container img:first-of-type {
	width: 2rem;
} */

.welcome-box.container img:last-of-type {
    width: 75%;
    margin-top: .6rem;
    border-radius: .8rem;
    box-shadow: 0 5px 10px rgba(0, 0, 0, .12);
}

@media (prefers-color-scheme: dark) {
    .welcome-box.container img:last-child {
        box-shadow: 0 6px 12px rgba(255, 255, 255, .25);
        /* filter: invert(.95) hue-rotate(190deg) !important; */
    }

    .tea-menu.left.container {
        background: #090a0a !important;
    }
}

.box.container h3 {
    margin-bottom: .5rem;
}

.box.container.s1,
.box.container h3 {
    text-align: center;
}

.box.container.s1 select {
    padding-top: .2rem;
    height: 12rem;
    width: 18vw;
    text-align: center;
}

@media screen and (min-width: 590px) {
    .box.container.s1 select {
        width: 9rem;
    }
}

/* .box.container.s1 button {
	transform: translateY(-4.5rem);
} */

.box.container.s1 button.in {
    transform: translateY(4rem) translateX(-1.16rem);
}

.box.container.s1 button.out {
    transform: translateY(6rem) translateX(1.16rem);
}

.box.container.s1 button {
    height: 1.6rem;
    padding: 0;
}

.box.container.state {
    text-align: center;
}

.box.container.state span {
    display: inline-block;
    margin: .2rem;
}

.dot {
    height: .8rem;
    width: .8rem;
    border-radius: .8rem;
    /* margin-top: .9rem; */
    display: inline-block;
    line-height: .8rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .1);
    border: 1.2px solid rgba(4, 4, 6, .7);
}

.dot.green {
    background: rgba(24, 245, 48, .9);
}

.dot.yellow {
    background: rgba(258, 189, 48, .9);
}

.dot.red {
    background: rgba(255, 64, 48, .8);
}

.box.container.appearance>div,
.box.container.language>div {
    display: inline-block;
}

.box.container.appearance>div:not(.box.container.appearance>div:last-of-type) {
    margin-right: 1rem;
}

.activation-info>* {
    margin-top: 6px;
}

.subscript {
    display: inline-block;
    font-size: .9rem;
    height: 1.4rem;
    width: 3.2rem;
    line-height: 1.4rem;
    padding: 0;
    background: var(--mio-theme-color-tertiary-container);
    border-radius: 1rem;
    text-align: center;
    transform: translateY(-100%) translateX(8%);
    position: absolute;
    box-shadow: 0 1.5px 7px rgb(0 0 0 / 20%);
}

/* .subscript>span {
	display: inline-block;
	transform: translateY(-32%);
	font-weight: 400;
} */

/* @font-face {
	font-family: "HarmonyOS_Sans_SC_Medium";
	src: url("../resource/HarmonyOS_Sans_SC_Medium.woff") format("woff"),
	src: url("https://resource-1305389726.cos.ap-nanjing.myqcloud.com/HarmonyOS_Sans_SC_Medium.woff") format("woff");
} */

*:not(.google-symbols) {
    /* font-family: 'IBM Plex Sans', "HarmonyOS_Sans_SC_Medium", -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, Cantarell, Oxygen, Roboto, Helvetica, Arial, sans-serif; */
    font-family: 'IBM Plex Sans', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, Cantarell, Oxygen, Roboto, Helvetica, Arial, sans-serif;
}

select *,
input[type="radio"]:checked+label {
    font-weight: 500;
}


h1,
select option:selected {
    /* font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, Cantarell, Oxygen, Roboto, Helvetica, Arial, sans-serif !important; */
    font-weight: 700 !important;
}

h3 {
    /* font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, Cantarell, Oxygen, Roboto, Helvetica, Arial, sans-serif !important; */
    font-weight: 600;
}

/* @media (prefers-color-scheme: light) { */

.light input:not([type="checkbox"], [type="radio"], .nstyle),
.light button,
.light select {
    border: 1.5px solid rgb(19, 36, 65) !important;
}

/* button:not(.flew-layer *) {
		border-bottom: 3px solid rgb(19, 36, 65) !important;
		background-color: rgba(254, 205, 46, .8) !important;
	} */

.light input:not(input[type="checkbox"], input[type="radio"], .nstyle) {
    box-shadow: inset 0 0.25em 1px 0 #f0f1f3;
}

/* } */

/* @media (prefers-color-scheme: dark) { */

.dark input:not([type="checkbox"], [type="radio"], .nstyle),
.dark button:not(.ng-button),
.dark select {
    border: 1.5px solid #040300 !important;
    background: rgba(255, 255, 255, .12);
}

/* } */

h3 {
    font-size: 1.7rem;
}

button.input {
    margin-top: .6rem;
}

.welcome-box>div>p {
    font-weight: 500;
    font-size: 1.04rem;
    line-height: 1.6rem;
}

.hr-line {
    background: var(--mio-theme-color-inverse-surface);
    filter: contrast(.1) brightness(.8);
    width: 80%;
    height: 1px;
    border-radius: 1rem;
    margin: 0 auto;
}

.welcome-box.container .ng-button {
    position: absolute;
    right: 1.2rem;
    top: -2rem;
    width: 7.5rem;
    height: 2.7rem;
    font-size: 18px;
    padding: 0;
}

.welcome-box *,
label * {
    font-family: 'Google Sans';
}

.welcome-box h1 {
    font-size: 56px;
    line-height: 28px;
}

* {
    -ms-overflow-style: none;
}

* {
    scrollbar-width: none;
}

@media (max-width: 720px) {
    body>.right.container {
        width: 100vw;
        height: 100vh;
        justify-content: center;
        overflow: auto;
        background-attachment: fixed;
    }

    .welcome-box.container {
        height: 6rem !important;
        margin: .2rem;
        background: url("../img/unnamed.webp") no-repeat no-repeat;
        background-size: cover;
        overflow: hidden;
        display: flex;
        justify-content: center;
        line-height: 0;
    }

    .box.container {
        padding: 0;
        margin: .2rem;
    }

    body>div.right.container>div.welcome-box.box.container {
        margin-top: .2rem !important;
        border-radius: .7rem;
        padding: .4rem;
        height: 9rem;
    }

    .welcome-box h1 {
        font-size: 30px;
        line-height: 16px;
    }

    .subscript {
        zoom: .6;
    }

    .welcome-box>div>p {
        font-size: .5rem;
        line-height: 12px;
    }

    h3 {
        font-size: 1.2rem;
    }

    #C2 button {
        box-shadow: none;
        height: fit-content;
    }

    #C2 button:active {
        background: #f76;
    }

    input[type="radio"],
    input[type="radio"]:checked+label:before,
    input[type="radio"]+label:before {
        display: none !important;
    }
}