.pop-box {
    color: #ffffff;
    padding: 20px;
    border-radius: 15px;
    background: #2f3542;
    max-height: 90vh;
    max-width: 85vw;
    min-width: 320px;
    overflow: auto;
    animation: fade-in var(--duration) both;
    box-shadow: 0 0 100px #0008;
    display: flex;
    flex-direction: column;
    translate: 0 -80px;
    gap: 5px;
}
.pop-box::-webkit-scrollbar {
    display: none;
}
.pop-box.one-line {
    min-width: 300px;
}
.pop-box.one-line.link {
    min-width: 500px;
}
.pop-box > *:not(textarea, input) {    
    --text: white;
}
.pop-box textarea, .pop-box input {
    flex: 1;
    color: #000;
    resize: none;
    border-radius: 4px;
    border: solid 1px #a4b0be;
    background: #a4b0be;
}
.pop-box textarea {
    min-height: 88px;
    padding: 12px;
}
.pop-box input {
    padding: 10px 12px;
}
.pop-box textarea[readonly] {
    background: #fff2;
    color: white;
}
.fade-out .pop-box:not(.quiet) {
    /* animation: fly-away var(--duration) both; */
}
.pop-box > :is(h2, h3) {
    font-size: 1.05rem;
    line-height: 2.5rem;
    display: flex;
    align-items: center;
    font-weight: 600;
}
.pop-box > h3 {
    padding: 0 0 5px;
    user-select: none;
}
.pop-box > .operation {
    text-align: right;
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    gap: 15px;
}

button.form {
    /* font-size: 1.1rem; */
    --height: 34px;
    /* border-radius: calc(var(--height) / 2); */
    transition: var(--duration-thin);
    border-radius: 5px;
}
button.form:hover {
    box-shadow: 0 0 15px var(--bg);
}
button.alert {
    --bg: var(--prompt-submit);
    color: #fff;
}
button.confirm {
    --bg: #85a7cf;
    margin-right: 0;
    border-radius: 3px;
}
button.confirm {
    background: #2f3542;
    border: solid 0.5px;
    color: #ff4757;
    background: #ff475722;
}
button {
    background: #57606f;
    --cancel: #4e639ef4;
    border: none;
    color: white;
    padding: 8px 20px;
    border-radius: 5px;
    box-shadow: 3px 3px 6px #00000032;
}

.prompt-tip-box {
    position: fixed;
    z-index: 1000;
    top: 20vh;
    left: 0;
    right: 0;
    display: grid;
    place-content: center;
}
.prompt-tip-box .prompt-tip {
    background: #0009;
    backdrop-filter: blur(6px);
    padding: 22px 32px;
    font-size: 1.3rem;
    color: white;
    border-radius: 10px;
    place-self: center;
    animation: prompt-out var(--duration, 1.5s) forwards; 
}

.choose-image-box {
    display: grid;
    grid-template-areas:
        "icon input"
        "icon submit";
    grid-template-columns: 160px 1fr;
    grid-template-rows: 80px 80px;
    width: 800px;
    /* padding-top: 20px; */
    column-gap: 20px;
    padding: 20px;
}
.choose-image-box > img {
    grid-area: icon;
    width: 100%;
    filter: invert(1);
    border: dashed 1px #777;
    object-fit: cover;
    height: 100%;
    cursor: pointer;
}
.choose-image-box > img.selected {
    filter: none;
}
.choose-image-box > input-box {
    grid-area: input;
    --width: 100%;
    transform: translateY(10px);
    margin: 0;
}
.choose-image-box > div {
    grid-area: submit;
}
h2 {
    display: flex;
    gap: 10px;
}
h2 > img {
    width: 20px;
    height: 20px;
}

@keyframes prompt-out {
    from {
        opacity: 0;
    }
    25% { 
        opacity: 1;
    }
    75% { 
        opacity: 1;
        transform: translateY(0);
    }
    to {
        transform: translateY(-15%);
        opacity: 0;
    }
}

mask, .fullscreen {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-mask, #0000009c);
    display: grid;
    place-content: center;
    backdrop-filter: blur(8px);
    z-index: 200;
}
mask:not(.fade-out)   {
    animation: fade-in var(--duration-thin) both;
}
mask .fly-away {
    animation: fly-away var(--duration) both;
}
mask .fade-away {
    animation: fade-away var(--duration) both;
}
::placeholder {
    color: #000;
    opacity: 0.25;
}