* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    font-family: "JetBrains Mono", monospace;
}

[hidden] {
    display: none !important;
}

a, a:focus, a:hover, a:active {
    text-decoration: none;
    color: rgb(230, 230, 230);
}

body {
    background-color: #1a1a1a;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    padding: 0 5px;
}

body.page {
    align-items: flex-start;
    height: auto;
    min-height: 100vh;
    padding: 40px 5px;
}

body.page .container {
    margin-top: auto;
    margin-bottom: auto;
}

.container {
    text-align: center;
    background: linear-gradient(135deg, #2b2b2b, #3b3b3b);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    width: 600px;
    max-width: 100%;
    min-width: 250px;
}

input {
    padding: 10px;
    border: none;
    border-radius: 5px;
    margin-right: 10px;
    font-size: 16px;
    width: 100%;
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: rgb(11, 140, 11);
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.16s;
}

button:hover {
    background-color: rgb(11, 160, 11);
}

button:disabled {
    background-color: rgb(70, 90, 70);
    cursor: progress;
}

.result {
    opacity: 0;
    transition: opacity 0.5s;
    word-break: break-all;
}

.flex-container {
    display: flex;
    justify-content: center;
}

.trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.captcha {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.captcha img {
    flex: 0 0 auto;
    display: block;
    border-radius: 5px;
    background: #fff;
}

.captcha input {
    flex: 1 1 auto;
    min-width: 0;
    margin-right: 0;
}

.captcha button {
    flex: 0 0 auto;
    padding: 10px 14px;
}

.extra {
    margin-top: 10px;
    font-size: 13px;
    color: rgb(160, 160, 160);
}

.extra.nav {
    margin-top: 14px;
}

.link-list {
    margin-top: 6px;
    text-align: left;
}

.link-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.link-main {
    flex: 1 1 0;
    min-width: 0;
}

.link-head {
    display: block;
    font-size: 15px;
    color: rgb(120, 200, 120);
    word-break: break-all;
}

.link-date {
    margin-top: 6px;
    font-size: 12px;
    color: rgb(140, 140, 140);
}

.row-menu {
    position: relative;
    flex: 0 0 auto;
    align-self: center;
}

.dots {
    padding: 2px 10px 6px;
    font-size: 18px;
    line-height: 1;
    background-color: rgba(255, 255, 255, 0.08);
    color: rgb(210, 210, 210);
    border-radius: 5px;
}

.dots:hover {
    background-color: rgba(255, 255, 255, 0.16);
}

.menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 10;
    min-width: 170px;
    display: flex;
    flex-direction: column;
    padding: 4px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background-color: #3a3a3a;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}

.menu-item {
    display: block;
    width: 100%;
    padding: 7px 10px;
    border: none;
    border-radius: 4px;
    background-color: transparent;
    color: rgb(230, 230, 230);
    font: inherit;
    font-size: 13px;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
}

a.menu-item:hover, button.menu-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: rgb(230, 230, 230);
    text-decoration: none;
}

.menu-item.danger {
    color: rgb(232, 110, 110);
}

.menu-item:disabled {
    color: rgb(120, 120, 120);
    background-color: transparent;
    cursor: not-allowed;
}

.btn {
    display: block;
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    font: inherit;
    font-size: 12px;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.08);
    color: rgb(230, 230, 230);
    transition: background-color 0.16s;
}

a.btn:hover, button.btn:hover {
    background-color: rgba(255, 255, 255, 0.14);
    text-decoration: none;
    color: rgb(230, 230, 230);
}

.btn.danger {
    background-color: rgb(150, 40, 40);
    color: #fff;
}

button.btn.danger:hover {
    background-color: rgb(175, 48, 48);
}

.btn:disabled {
    background-color: rgba(255, 255, 255, 0.06);
    color: rgb(120, 120, 120);
    cursor: not-allowed;
}

.note {
    flex: 1 0 100%;
    margin: 6px 0 0;
    font-size: 12px;
    color: rgb(200, 120, 120);
}

.note:empty {
    display: none;
}

.link-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.link-actions .btn {
    display: inline-block;
}

.extra a {
    color: rgb(120, 200, 120);
}

.qr {
    display: block;
    margin: 12px auto 0;
    background: #fff;
    padding: 6px;
    border-radius: 5px;
    image-rendering: pixelated;
}

.token {
    display: block;
    margin-top: 8px;
    padding: 6px 8px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 5px;
    font-size: 12px;
    word-break: break-all;
    color: rgb(200, 200, 200);
}

h1 {
    font-size: 22px;
    margin: 0 0 6px;
}

h2 {
    font-size: 14px;
    margin: 18px 0 6px;
    color: rgb(160, 160, 160);
    font-weight: 500;
}

.container > :first-child,
.doc > :first-child {
    margin-top: 0;
}

.sub {
    margin: 0 0 14px;
    color: rgb(160, 160, 160);
    font-size: 14px;
}

.facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin: 0 0 12px;
    text-align: left;
}

.facts dt {
    font-size: 11px;
    color: rgb(150, 150, 150);
}

.facts dd {
    margin: 2px 0 0;
    font-size: 14px;
}

.facts .big {
    font-size: 26px;
}

.list {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: left;
}

.list li {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 14px;
}

.list li:last-child {
    border-bottom: none;
}

.bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
}

.bar {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: 56px;
}

.bar-track {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-end;
    width: 100%;
    height: 94px;
}

.bar-fill {
    display: block;
    width: 100%;
    background-color: rgb(11, 140, 11);
    border-radius: 3px 3px 0 0;
    min-height: 2px;
}

.bar-label {
    font-size: 9px;
    color: rgb(150, 150, 150);
    margin-top: 4px;
    white-space: nowrap;
}

.doc {
    text-align: left;
    font-size: 14px;
}

.doc pre {
    background: rgba(0, 0, 0, 0.35);
    border-radius: 5px;
    padding: 10px;
    overflow-x: auto;
    font-size: 12px;
}

.doc p {
    color: rgb(180, 180, 180);
}

.doc ul {
    color: rgb(180, 180, 180);
    padding-left: 20px;
}

.doc a, .extra a, .foot a {
    color: rgb(120, 200, 120);
}

.foot {
    margin-top: 16px;
    margin-bottom: 0;
    font-size: 13px;
    color: rgb(150, 150, 150);
}

.huge {
    font-size: 64px;
    margin: 0;
}

.target {
    color: rgb(160, 160, 160);
    font-size: 13px;
    word-break: break-all;
    text-align: left;
}

@media screen and (max-width: 560px) {
    .bar-label {
        display: none;
    }

}

@media screen and (max-width: 350px) {
    input {
        margin: 0 0 5px 0;
        width: 100%;
    }

    button {
        width: 100%;
    }

    .flex-container {
        display: grid;
    }

    .captcha {
        flex-wrap: wrap;
    }

    .captcha img {
        width: 100%;
        height: auto;
    }

    .captcha input {
        flex: 1 1 60%;
        margin: 0;
    }

    .captcha button {
        width: auto;
    }
}

.bar-h-5 { height: 5%; }
.bar-h-10 { height: 10%; }
.bar-h-15 { height: 15%; }
.bar-h-20 { height: 20%; }
.bar-h-25 { height: 25%; }
.bar-h-30 { height: 30%; }
.bar-h-35 { height: 35%; }
.bar-h-40 { height: 40%; }
.bar-h-45 { height: 45%; }
.bar-h-50 { height: 50%; }
.bar-h-55 { height: 55%; }
.bar-h-60 { height: 60%; }
.bar-h-65 { height: 65%; }
.bar-h-70 { height: 70%; }
.bar-h-75 { height: 75%; }
.bar-h-80 { height: 80%; }
.bar-h-85 { height: 85%; }
.bar-h-90 { height: 90%; }
.bar-h-95 { height: 95%; }
.bar-h-100 { height: 100%; }
