/* Staff pages: sign-in (/account/*) and the Admin area (/admin/*). Builds on site.css (colors, inputs, .btn). */
.staff-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px clamp(16px, 4vw, 48px);
    border-bottom: 1px solid var(--line);
}

.staff-header img {
    height: 44px;
    width: auto;
}

.staff-header nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    font-size: 14px;
}

.staff-header nav a[aria-current="page"] {
    color: #e2b6ff;
}

.staff-header button {
    background: none;
    border: 1px solid var(--line);
    border-radius: 30px;
    color: var(--white);
    padding: 8px 16px;
    cursor: pointer;
}

.staff-main {
    max-width: 980px;
    margin: 0 auto;
    padding: 48px 16px 90px;
}

.staff-card {
    max-width: 460px;
    margin: 0 auto;
    background: #16131e;
    border: 1px solid #ffffff2c;
    border-radius: 20px;
    padding: clamp(22px, 4vw, 38px);
}

.staff-card h1,
.staff-main h1 {
    font-family: Georgia, serif;
    font-weight: 400;
    font-size: 32px;
    margin: 0 0 8px;
}

.staff-card p,
.staff-main p {
    color: var(--muted);
    line-height: 1.6;
}

.staff-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

.staff-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    color: #d7cfdd;
}

.staff-form .btn {
    border: none;
    cursor: pointer;
}

.staff-form .btn:disabled {
    opacity: .6;
    cursor: wait;
}

.staff-form small,
.hint {
    color: #9d94aa;
    font-size: 12px;
}

.staff-form small a {
    color: #d7a0ff;
}

.link-button {
    background: none;
    border: none;
    color: #d7a0ff;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    font-size: 13px;
    align-self: flex-start;
}

.alert {
    color: #ffb7ae;
    background: #ff5a4a14;
    border: 1px solid #ff8a7a44;
    border-radius: 10px;
    padding: 10px 14px;
    margin: 14px 0 0;
}

.notice {
    color: #d8f5d0;
    background: #5ad06a14;
    border: 1px solid #7ad07a44;
    border-radius: 10px;
    padding: 12px 14px;
}

.qr {
    display: block;
    width: 220px;
    height: 220px;
    margin: 16px auto;
    background: white;
    border-radius: 12px;
    image-rendering: pixelated;
}

.secret-key,
.codes {
    font-family: Consolas, 'Courier New', monospace;
    background: #0e0d15;
    border: 1px solid #ffffff30;
    border-radius: 10px;
    padding: 12px;
    word-break: break-all;
}

.codes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px 18px;
    list-style: none;
    margin: 12px 0;
}

.panel {
    background: #16131e;
    border: 1px solid #ffffff2c;
    border-radius: 16px;
    padding: clamp(16px, 3vw, 26px);
    margin-top: 24px;
}

.panel h2 {
    font-size: 18px;
    margin: 0 0 12px;
}

.inline-form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
    align-items: end;
}

.inline-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: #d7cfdd;
}

.inline-form .btn {
    border: none;
    cursor: pointer;
}

.table-wrap {
    overflow-x: auto;
}

table.list {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

table.list th,
table.list td {
    text-align: left;
    padding: 10px 8px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

table.list th {
    color: var(--muted);
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.small-btn {
    background: #0e0d15;
    border: 1px solid #ffffff30;
    border-radius: 8px;
    color: var(--white);
    padding: 6px 10px;
    font-size: 12px;
    cursor: pointer;
}

.small-btn.danger {
    border-color: #ff8a7a66;
    color: #ffb7ae;
}

.tag {
    display: inline-block;
    font-size: 11px;
    border-radius: 20px;
    padding: 2px 8px;
    border: 1px solid var(--line);
    color: var(--muted);
}

.tag.good {
    color: #b9f0b0;
    border-color: #7ad07a55;
}

.tag.warn {
    color: #ffd59a;
    border-color: #ffc37a55;
}

.share-link {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.share-link input {
    font-family: Consolas, 'Courier New', monospace;
    font-size: 12px;
}

@media (max-width: 640px) {
    .inline-form {
        grid-template-columns: 1fr;
    }

    .codes {
        grid-template-columns: 1fr;
    }
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #d7cfdd;
}

.filter-row select {
    width: auto;
    padding: 8px 10px;
    margin-left: 6px;
}

.filter-row .check {
    display: flex;
    align-items: center;
    gap: 6px;
}

tr.unread td {
    font-weight: 700;
}

.answers {
    display: grid;
    grid-template-columns: minmax(140px, 220px) 1fr;
    gap: 8px 18px;
    margin: 16px 0 20px;
}

.answers dt {
    color: var(--muted);
    font-size: 13px;
}

.answers dd {
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

a.small-btn {
    display: inline-block;
}

@media (max-width: 640px) {
    .answers {
        grid-template-columns: 1fr;
    }

    .answers dd {
        margin-bottom: 8px;
    }
}

/* ---- Collective Voice editor: the form, with the original submission beside it for reference ---- */
.voice-editor {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.voice-editor .staff-form {
    margin-top: 0;
}

.voice-editor input,
.voice-editor select,
.voice-editor textarea,
#progressForm select,
#progressForm textarea,
#categoriesForm textarea {
    font: inherit;
}

.staff-form label.check {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #f3e1c6;
}

.voice-source {
    border: 1px dashed #ffffff30;
    border-radius: 12px;
    padding: 16px;
    background: #0e0d15;
}

.voice-source h3 {
    margin: 0 0 4px;
    font-size: 15px;
}

@media (max-width: 860px) {
    .voice-editor {
        grid-template-columns: 1fr;
    }
}

/* In the narrow reference column, put each answer under its label. */
.voice-source .answers {
    grid-template-columns: 1fr;
    gap: 2px;
}

.voice-source .answers dd {
    margin: 0 0 10px;
}

/* Our Network editor: the "how they help" checkboxes */
.ways-pick {
    border: 0;
    margin: 0;
    padding: 0;
}

.ways-pick legend {
    font-size: 13px;
    color: #d7cfdd;
    margin-bottom: 8px;
}

.ways-pick #ways {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 16px;
}

.ways-pick label.check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

@media (max-width: 560px) {
    .ways-pick #ways {
        grid-template-columns: 1fr;
    }
}
