/*
 * Publish To Profile: the toolbar button, its dialog and the line of feedback
 * it leaves behind. Scoped to its own pcq- prefix so nothing here can reach
 * any of the simulator's own furniture.
 */

.pcq-publish {
    white-space: nowrap;
}

/* ── Dialog ──────────────────────────────────────────────────────────────── */

.pcq-back {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(4, 5, 14, 0.62);
}

.pcq {
    width: min(420px, 100%);
    padding: 24px 26px 22px;
    border: 1px solid rgba(150, 170, 255, 0.28);
    border-radius: 10px;
    background: #12132a;
    color: #eef1fb;
    font-family: 'Inter', system-ui, sans-serif;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.pcq-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 8px;
}

.pcq-note {
    font-size: 0.83rem;
    line-height: 1.55;
    color: #99a1c4;
    margin: 0 0 18px;
}

.pcq-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #99a1c4;
    margin-bottom: 7px;
}

.pcq-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(150, 170, 255, 0.28);
    border-radius: 6px;
    background: transparent;
    color: #eef1fb;
    font-family: inherit;
    font-size: 0.92rem;
}

.pcq-input:focus {
    outline: none;
    border-color: #7dd3fc;
}

.pcq-stats {
    font-size: 0.78rem;
    color: #99a1c4;
    font-variant-numeric: tabular-nums;
    margin: 9px 0 0;
}

/*
 * Holds its line whether or not it says anything, so an error arriving does
 * not shunt the buttons down the dialog.
 */
.pcq-status {
    min-height: 1.3em;
    font-size: 0.8rem;
    line-height: 1.3;
    color: #99a1c4;
    margin: 10px 0 0;
}

.pcq-status--bad {
    color: #f98a8a;
}

.pcq-row {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.pcq-btn {
    padding: 9px 18px;
    border: 1px solid rgba(150, 170, 255, 0.34);
    border-radius: 7px;
    background: transparent;
    color: #eef1fb;
    font-family: inherit;
    font-size: 0.87rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, color .15s ease;
}

.pcq-btn:hover:not(:disabled) {
    border-color: #7dd3fc;
}

.pcq-btn--go {
    border-color: #7dd3fc;
    background: #7dd3fc;
    color: #06070f;
}

.pcq-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

/* ── Confirmation ────────────────────────────────────────────────────────── */

.pcq-flash {
    position: fixed;
    left: 50%;
    bottom: 26px;
    z-index: 9001;
    transform: translateX(-50%) translateY(8px);
    padding: 10px 18px;
    border: 1px solid rgba(150, 170, 255, 0.28);
    border-radius: 999px;
    background: #12132a;
    color: #eef1fb;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.85rem;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
}

.pcq-flash.is-shown {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .pcq-flash { transition: none; }
}
