@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;600;700;800&display=swap');

:root {
    font-family: 'DM Sans', sans-serif;
    color: #e8edf6;
    background: #0b1020;
    font-synthesis: none;
    text-rendering: optimizeLegibility
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: radial-gradient(ellipse at 8% 0%, #1c2850 0, transparent 35%), #0b1020
}

header {
    height: 72px;
    max-width: 1440px;
    margin: auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #202b42
}

.brand {
    font-family: Manrope, sans-serif;
    font-weight: 800;
    font-size: 17px
}

.brand:first-letter {
    color: #a8f0d0
}

.logout {
    color: #a8f0d0;
    text-decoration: none;
    font-size: 13px
}

.wrap {
    max-width: 1440px;
    margin: auto;
    padding: 0 28px 30px
}

.hero {
    padding: 35px 0 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px
}

.eyebrow {
    font-size: 10px;
    letter-spacing: .16em;
    color: #8ea0c0;
    font-weight: 700;
    margin: 0 0 9px
}

.hero h1,
h1 {
    font-family: Manrope, sans-serif;
    font-size: clamp(27px, 4vw, 42px);
    letter-spacing: -.04em;
    margin: 0 0 8px
}

.hero p,
.login p {
    color: #a7b4ca;
    line-height: 1.6;
    max-width: 650px;
    font-size: 14px
}

.approval {
    border: 1px solid #2a3e4a;
    background: #122522;
    border-radius: 14px;
    padding: 16px;
    color: #a8f0d0;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap
}

.layout {
    display: grid;
    grid-template-columns: minmax(290px, 380px) minmax(0, 1fr);
    gap: 22px;
    align-items: start
}

.panel {
    background: rgba(17, 25, 44, .94);
    border: 1px solid #27334c;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 36px #00000014
}

.composer {
    padding: 22px
}

.composer h2,
.queue h2 {
    font-family: Manrope, sans-serif;
    font-size: 20px;
    margin: 0 0 18px
}

.composer form {
    display: flex;
    flex-direction: column;
    gap: 16px
}

.composer label,
.login label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #c8d1e2;
    font-size: 12px;
    font-weight: 700
}

textarea,
input[type=file],
input[type=password],
select {
    width: 100%;
    border: 1px solid #34415d;
    border-radius: 10px;
    background: #0d1425;
    color: #e8edf6;
    padding: 11px 12px;
    outline: none;
    font: inherit;
    font-size: 13px
}

textarea {
    resize: vertical;
    line-height: 1.5;
    font-weight: 400
}

select {
    cursor: pointer
}

textarea:focus,
input:focus,
select:focus {
    border-color: #8cdbbf
}

fieldset {
    border: 1px solid #34415d;
    border-radius: 11px;
    padding: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px
}

legend {
    font-size: 11px;
    color: #a7b4ca;
    padding: 0 6px
}

.check {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 7px !important;
    font-weight: 500 !important
}

.check input {
    accent-color: #a8f0d0
}

button {
    cursor: pointer;
    border: 1px solid #33405b;
    border-radius: 10px;
    background: #151d31;
    color: #e8edf6;
    padding: 10px 13px;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px
}

button:hover {
    border-color: #8295bd
}

.primary {
    background: #a8f0d0;
    color: #10231d;
    border-color: #a8f0d0
}

.primary:hover {
    background: #c2f7e1
}

.wide {
    width: 100%;
    margin-top: 3px
}

.hint {
    font-size: 11px;
    color: #8593ad;
    line-height: 1.55;
    font-weight: 400
}

.queue-head {
    margin: 3px 0 18px
}

.queue-head h2 {
    margin-bottom: 0
}

.empty {
    padding: 40px 20px;
    text-align: center;
    color: #93a1ba
}

.post {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    margin-bottom: 14px
}

.post-img {
    background: #0a0f1b;
    min-height: 190px
}

.post-img img {
    width: 100%;
    height: 100%;
    max-height: 300px;
    object-fit: cover
}

.post-content {
    padding: 16px 18px;
    min-width: 0
}

.meta {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap
}

.status {
    font-size: 10px;
    font-weight: 700;
    border-radius: 20px;
    padding: 5px 8px;
    background: #253047;
    color: #b7c4d9
}

.status.pending_approval {
    background: #45351b;
    color: #ffdc8b
}

.status.published {
    background: #193b31;
    color: #a8f0d0
}

.status.partial_failure,
.status.failed {
    background: #47292d;
    color: #ffb7bd
}

.prompt {
    font-size: 12px;
    color: #9caec9;
    line-height: 1.5;
    margin: 12px 0 5px
}

.caption {
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    margin: 0;
    color: #e0e7f2
}

.pills {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin-top: 13px
}

.pills span {
    border: 1px solid #34415d;
    border-radius: 7px;
    padding: 5px 8px;
    color: #aab8ce;
    font-size: 10px
}

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

.actions form {
    margin: 0
}

.results {
    display: grid;
    gap: 6px;
    margin-top: 12px;
    font-size: 11px;
    line-height: 1.5
}

.ok {
    color: #a8f0d0
}

.bad {
    color: #ffb7bd
}

.notice {
    margin: 0 0 18px;
    background: #182b31;
    border: 1px solid #31564e;
    border-radius: 11px;
    padding: 12px 14px;
    color: #c8f7e3;
    font-size: 13px
}

.login-wrap {
    min-height: calc(100vh - 72px);
    display: grid;
    place-items: center;
    padding: 22px
}

.login {
    max-width: 480px;
    width: 100%;
    padding: 30px
}

.login h1 {
    font-size: 32px
}

.login form {
    display: flex;
    flex-direction: column;
    gap: 14px
}

.login .hint {
    margin-top: 18px
}

.login .notice {
    margin-top: 15px
}

footer {
    text-align: center;
    padding: 28px 0 5px;
    color: #62728e;
    font-size: 11px
}

@media(max-width:900px) {
    .layout {
        grid-template-columns: 1fr
    }

    .approval {
        display: none
    }
}

@media(max-width:580px) {
    header {
        padding: 0 14px;
        height: 64px
    }

    .wrap {
        padding: 0 13px 24px
    }

    .hero {
        padding: 27px 0 21px
    }

    .post {
        grid-template-columns: 1fr
    }

    .post-img {
        height: 220px;
        min-height: 0
    }

    .post-content {
        padding: 14px
    }

    .composer {
        padding: 16px
    }
}