/* ===== Base theme ===== */
:root {
    --bg: #f6f7fb;
    --panel: #fff;
    --text: #0f172a;
    --muted: #64748b;
    --border: #e5e7eb;
    --agree-bg: #eafff1;
    --agree-border: #c7eed5;
    --neutral-bg: #f3f4f6;
    --neutral-border: #d1d5db;
    --disagree-bg: #ffe9ea;
    --disagree-border: #f7c6cb;
    --slot-h: 120px;
    --radius: 14px;
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
    color: var(--text);
    background: var(--bg);
    margin: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px
}

.card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px
}

.card--sub {
    margin-top: 10px
}

button {
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 999px;
    padding: 8px 14px;
    cursor: pointer
}

button:disabled {
    opacity: .5;
    cursor: not-allowed
}

.btn--primary {
    background: #4f46e5;
    color: #fff;
    border-color: #4f46e5
}

#banner {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    top: 12px;
    background: #111827;
    color: #fff;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 14px;
    z-index: 9999
}

.banner--clickable {
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(2, 6, 23, .18)
}

/* ===== Steps ===== */
.step__title {
    margin: 6px 0 6px
}

.step__actions {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    justify-content: flex-end
}

.step.hidden {
    display: none
}

/* ===== Statement cards ===== */
.card-item {
    position: relative;
    background: #fff;
    border: 2px solid var(--neutral-border);
    border-radius: 12px;
    padding: 10px 12px;
    line-height: 1.25;
    user-select: none;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .03);
    overflow-wrap: anywhere;
}

.info-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid #cbd5e1;
    background: #eef2f7;
    color: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    cursor: help;
    user-select: none;
}

.info-dot:focus {
    outline: 2px solid #c7d2fe;
    outline-offset: 2px
}

.info-tooltip {
    position: absolute;
    top: 22px;
    right: 0;
    min-width: 140px;
    max-width: 220px;
    white-space: normal;
    word-break: normal;
    background: #111827;
    color: #fff;
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.25;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .15);
    display: none;
    z-index: 1000;
}

.info-dot:hover .info-tooltip,
.info-tooltip.show {
    display: block
}

.card-item.dragging {
    opacity: .7
}

.card--agree {
    background: var(--agree-bg);
    border-color: var(--agree-border)
}

.card--neutral {
    background: var(--neutral-bg);
    border-color: var(--neutral-border)
}

.card--disagree {
    background: var(--disagree-bg);
    border-color: var(--disagree-border)
}

.q-prompt {
    font-size: 18px;
    font-weight: 700;
    margin: 4px 0 12px;
    color: var(--text)
}

.q-prompt--staging {
    font-size: 14px;
    font-weight: 600;
    margin: 6px 0 8px
}

/* ===== Stage 1 (triage) ===== */
.piles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px
}

.pile {
    display: flex;
    flex-direction: column;
    gap: 8px
}

.pile__header {
    font-weight: 600;
    color: var(--muted)
}

.pile__body {
    min-height: 180px;
    border: 1px dashed var(--border);
    border-radius: 12px;
    padding: 8px;
    background: #f8fafc;
    transition: background .15s ease, border-color .15s ease;
}

.pile__body--disagree {
    background: #fff1f2;
    border-color: #fecdd3
}

.pile__body--agree {
    background: #f0fdf4;
    border-color: #bbf7d0
}

.pile__body.col-hover {
    outline: 2px solid #c7d2fe;
    background: #eef2ff
}

#pool {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 10px
}

#pool.col-hover {
    outline: 2px solid #c7d2fe
}

.triage-actions {
    margin-top: 16px
}

#btn-advance {
    width: 100%;
    display: block;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(2, 132, 199, .18);
}

#btn-advance:hover {
    transform: translateY(-1px)
}

#btn-advance:active {
    transform: translateY(0);
    box-shadow: none
}

/* ===== Column headers row (kept for counters) ===== */
.col-headers {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 12px;
    margin-bottom: 8px
}

.col-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px
}

.col-label {
    font-weight: 600
}

.col-cap {
    font-size: 12px;
    border-radius: 999px;
    padding: 2px 8px;
    border: 1px solid var(--border);
    color: #334155;
    background: #f8fafc
}

.col-cap.ok {
    background: #ecfeff
}

.col-cap.low {
    background: #f0fdf4
}

.col-cap.full {
    background: #fff7ed
}

/* ===== Stage 2: 46-slot grid ===== */
.grid__slots {
    display: grid;
    grid-template-columns: repeat(9, minmax(96px, 1fr));
    grid-template-rows: repeat(8, var(--slot-h));
    gap: 12px;
    overflow: visible;
    padding: 8px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.grid__extremes {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 2px 4px;
    font-weight: 700;
    color: var(--muted)
}

.grid__extremes .grid__least,
.grid__extremes .grid__most {
    padding: 2px 6px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid var(--border)
}

.slot {
    border: 2px solid #d1d5db;
    border-radius: 12px;
    background: #fff;
    padding: 4px;
    overflow: visible
}

.slot--empty {
    background: #f9fafb
}

.slot--target {
    outline: 3px solid #c7d2fe;
    background: #eef2ff
}

.slot .card-item {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 8px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.15;
    font-size: 14px;
    overflow: visible;
}

/* ===== Stage 2: staging rack (sticky) ===== */
.staging-wrap {
    position: sticky;
    top: 8px;
    z-index: 50;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
    margin-bottom: 12px;
}

.staging__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 6px 2px;
    position: relative;
    z-index: 1
}

.staging__title {
    font-weight: 600
}

.staging__count {
    font-size: 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 2px 8px;
    background: #f8fafc;
    color: #334155
}

.staging {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 12px
}

.staging .slot {
    height: var(--slot-h)
}

.staging .slot .card-item:hover {
    box-shadow: 0 0 0 2px #e5e7eb inset
}

/* ===== Misc ===== */
.hidden {
    display: none
}

.small {
    font-size: 12px;
    color: var(--muted)
}

/* ===== Print staging ===== */
@media print {
    .grid__slots {
        overflow: visible
    }

    .staging-wrap {
        box-shadow: none
    }
}

/* Off-screen print pages container */
#print-pages {
    position: fixed;
    left: -99999px;
    top: 0;
    width: 900px;
    padding: 0;
    margin: 0;
}

.print-page {
    width: 900px;
    background: #fff;
    color: #000;
    border-radius: 8px;
    padding: 24px;
    border: 1px solid #e5e7eb;
    margin: 8px 0;
    border-radius: 12px;
}
.print-page__inner {
    padding: 14px 16px;
    box-sizing: border-box;
}
.print-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 12px
}

.print-sub {
    font-size: 12px;
    color: #667085;
    margin-bottom: 12px
}

.print-page h4 {
    margin: 10px 0 6px;
    font-size: 15px;
    font-weight: 700;
}

.print-page p {
    margin: 0 0 8px;
    line-height: 1.35;
}

.print-page ul {
    margin: 0 0 8px 18px;
}

/* Success notice on Review step */
.success {
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
    color: #14532d;
    border-radius: 10px;
    font-weight: 600;
}
/* ===== Info step (12 sections) ===== */
.info-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 6px 0 12px;
}

.info-progress__bar {
    flex: 1;
    height: 10px;
    background: #eef2f7;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.info-progress__fill {
    height: 100%;
    width: 0%;
    background: #22c55e;
    transition: width .2s ease;
}

.info-progress__text {
    min-width: 90px;
    text-align: right;
    color: var(--muted);
    font-weight: 600;
}

#info-sections {
    margin-top: 6px;
}

.info-section {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    background: #fff;
}

.info-section+.info-section {
    margin-top: 12px;
}

.info-title {
    margin: 0 0 8px;
    font-size: 16px;
}

.info-body p {
    margin: 0 0 8px;
}

.info-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.info-section.read {
    opacity: .9;
}

.info-section.hidden {
    display: none;
}

/* ===== Consent ===== */
.consent__list {
    list-style: decimal;
    padding-left: 20px;
    margin: 12px 0 16px;
}

.consent__item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
}

.consent__item+.consent__item {
    margin-top: 10px;
}

.consent__text {
    line-height: 1.35;
}

.consent__radios label {
    margin-left: 10px;
    white-space: nowrap;
}

.consent__radios input {
    transform: translateY(1px);
}

.consent__signatures {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

@media (min-width: 900px) {
    .consent__signatures {
        grid-template-columns: 1fr 1fr;
    }
}

.sig {
    border: 1px dashed var(--border);
    border-radius: 12px;
    padding: 12px;
    background: #f9fbfd;
}

.sig legend {
    font-weight: 700;
    padding: 0 4px;
}

.sig__row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 10px;
    align-items: center;
    margin-top: 8px;
}

.sig__label {
    color: var(--muted);
}

.input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font: inherit;
    background: #fff;
}

.sig__pad {
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    position: relative;
}

#sig-pad {
    width: 100%;
    height: 160px;
    display: block;
    border-radius: 10px;
}

.sig__tools {
    position: absolute;
    right: 8px;
    bottom: 8px;
}

.sig__upload input {
    display: block;
}

.sig__preview {
    display: block;
    margin-top: 8px;
    max-width: 100%;
    max-height: 120px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
}

.hidden {
    display: none !important;
}
/* Consent info block (on-screen) */
.consent-info {
    margin: 12px 0 16px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f8fafc;
}

.consent-info__section+.consent-info__section {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #e5e7eb;
}

.consent-info h3 {
    margin: 0 0 6px;
    font-weight: 700;
    font-size: 1rem;
}

.consent-info p {
    margin: 0;
    line-height: 1.45;
}

/* Printed page gets slightly smaller typography so info */
.print-page.print-consent-compact {
    font-size: 12px;
}

.print-page.print-consent-compact .print-title {
    font-size: 16px;
}

.print-page.print-consent-compact .print-sub {
    font-size: 12px;
}

.print-page.print-consent-compact ol {
    margin-left: 16px;
}
/* Form layout */
.form-section {
    margin: 14px 0;
}

.label {
    font-weight: 700;
    margin-bottom: 6px;
    display: block;
}

.input {
    width: 100%;
    max-width: 520px;
}

.input--inline {
    display: inline-block;
    max-width: 360px;
    margin: 6px 0 0 10px;
    vertical-align: middle;
}

.hint {
    color: #64748b;
    font-size: 0.875rem;
    margin-top: 4px;
}

.radios label,
.checks label {
    display: block;
    margin: 4px 0;
}

.checks--grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 6px 16px;
}

.checks--grid .span-2 {
    grid-column: span 2;
}

/* Matrix */
.matrix {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.matrix__head,
.matrix__row {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
}

.matrix__head {
    background: #f8fafc;
    font-weight: 700;
}

.matrix__head>div,
.matrix__row>div,
.matrix__row>label {
    padding: 8px 10px;
    border-bottom: 1px solid #e5e7eb;
}

.matrix__row:last-child>* {
    border-bottom: 0;
}

.matrix__row>label {
    display: grid;
    place-items: center;
    border-left: 1px solid #e5e7eb;
}

/* Inline validation */
.form-section.invalid .input,
.form-section.invalid .radios,
.form-section.invalid .checks,
.form-section.invalid select,
.form-section.invalid .matrix {
    outline: 2px solid #ef4444;
    outline-offset: 2px;
    border-radius: 8px;
}

.form-error {
    color: #b91c1c;
    margin-bottom: 8px;
}

.hidden {
    display: none !important;
}

/* Callouts */
.callout {
    padding: 10px 12px;
    border-radius: 10px;
}

.callout--danger {
    background: #fef2f2;
    border: 1px solid #fee2e2;
    color: #7f1d1d;
}

/* Floating progress */
.floating-progress, #post-progress {
    position: fixed;
    right: 18px;
    bottom: 18px;
    background: #0f172a;
    color: #fff;
    padding: 8px 12px;
    border-radius: 999px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
    font-weight: 600;
    z-index: 50;
}
.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(2, 6, 23, .55);
    z-index: 9999; 
}
.modal:not(.hidden) {
    display: flex;
}
.modal__box {
    background: #fff;
    padding: 18px;
    border-radius: 14px;
    max-width: 680px;
    width: calc(100% - 32px);
}
.modal__panel {
    width: min(860px, 96vw);
    max-height: calc(100dvh - 48px);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(2, 6, 23, .25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal__list {
    margin: 8px 0 0 16px;
}

.modal__actions {
    text-align: right;
    margin-top: 12px;
}
.q-guide-bar {
    display: flex;
    justify-content: flex-end;
    margin: 6px 0 10px;
}

.btn--ghost {
    background: transparent;
    border: 1px solid #e5e7eb;
}

.modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.modal__body img,
.modal__body video {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 8px 0;
}

.modal__header,
.modal__footer {
    padding: 16px 20px;
    flex: 0 0 auto;
    background: #fff;
}

.modal__header {
    border-bottom: 1px solid #eef2f7;
}

.modal__footer {
    border-top: 1px solid #eef2f7; }

#q-guide-history.hidden {
    display: none;
}

#q-guide-history-list {
    margin-left: 16px;
}

#q-guide-history-list li {
    cursor: pointer;
}

#q-guide-history-list li:hover {
    text-decoration: underline;
}
.modal__body {
    padding: 16px 20px;
    overflow-y: auto;
    min-height: 0;
}

#q-guide-modal .modal__body img {
    max-width: 100%;
    height: auto;
    display: block;
}
#q-guide-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(2, 6, 23, .55);
    z-index: 9999;
}

#q-guide-modal:not(.hidden) {
    display: flex;
}

/* Panel (the inner card) */
#q-guide-modal .modal__panel {
    width: min(880px, 96vw);
    max-height: calc(100dvh - 48px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(2, 6, 23, .25);
}

/* Header/Footer don't scroll */
#q-guide-modal .modal__header,
#q-guide-modal .modal__footer {
    flex: 0 0 auto;
    padding: 16px 20px;
    background: #fff;
    border-bottom: 1px solid #eef2f7;
}

#q-guide-modal .modal__footer {
    border-bottom: 0;
    border-top: 1px solid #eef2f7;
}
#q-guide-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 16px 20px;
}

/* Images inside the guide */
#q-guide-modal .modal__body img,
#q-guide-body img {
    max-width: 100%;
    height: auto;
    display: block;
}

body.modal-open {
    overflow: hidden; }
body.modal-open {
    overflow: hidden;
}

#pre-def-modal .modal__panel,
#pre-error-modal .modal__panel {
    max-height: calc(100dvh - 48px);
    display: flex;
    flex-direction: column;
}

#pre-def-modal .modal__body,
#pre-error-modal .modal__body {
    overflow-y: auto;
    min-height: 0; }
/* Post step */
.form .triplet {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.form .triplet label {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#post-progress {
    margin-bottom: 8px;
}

/* floating Q-sort “peek” */
.peek {
    position: fixed;
    left: 16px;
    bottom: 16px;
    width: 280px;
    height: 190px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .18);
    resize: both;
    overflow: auto;
    z-index: 9999;
}

.peek__bar {
    cursor: move;
    user-select: none;
    background: #0f172a;
    color: #fff;
    font-weight: 700;
    padding: 8px 10px;
    border-radius: 10px 10px 0 0;
    font-size: 12px;
}

.peek__body {
    padding: 8px;
}

.peek__body img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* make long modals scrollable (you already added the container rules; ensure body lock) */
.modal__dialog {
    max-height: 80vh;
    overflow: auto;
}

body.modal-open {
    overflow: hidden;
}
/* Post step */
.form .triplet {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.form .triplet label {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#post-progress {
    margin-bottom: 8px;
}

/* floating Q-sort “peek” */
.peek {
    position: fixed;
    left: 16px;
    bottom: 16px;
    width: 280px;
    height: 190px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .18);
    resize: both;
    overflow: auto;
    z-index: 9999;
}

.peek__bar {
    cursor: move;
    user-select: none;
    background: #0f172a;
    color: #fff;
    font-weight: 700;
    padding: 8px 10px;
    border-radius: 10px 10px 0 0;
    font-size: 12px;
}

.peek__body {
    padding: 8px;
}

.peek__body img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* make long modals scrollable (you already added the container rules; ensure body lock) */
.modal__dialog {
    max-height: 80vh;
    overflow: auto;
}

body.modal-open {
    overflow: hidden;
}
/* Match Pre style */
.form--stacked .form-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    margin: 12px 0;
}

.form--stacked .form-section .q {
    display: block;
    font-weight: 800;
    font-size: 16px;
    margin-bottom: 8px;
    color: #0f172a;
}

.form--stacked .choices {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 6px 0 10px;
}

.form--stacked .choices label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 6px 12px;
    cursor: pointer;
}

.form--stacked textarea,
.form--stacked input[type="text"],
.form--stacked input[type="number"] {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px;
    font: inherit;
    background: #fff;
}

.form--stacked .triplet {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.form--stacked .triplet label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-section.invalid {
    outline: 2px solid #ef4444;
    outline-offset: 2px;
}

.alert {
    background: #fee2e2;
    color: #7f1d1d;
    border: 1px solid #fecaca;
    padding: 10px 12px;
    border-radius: 10px;
}

.progress {
    position: sticky;
    top: 8px;
    background: #ecfeff;
    color: #155e75;
    border: 1px solid #a5f3fc;
    padding: 6px 10px;
    border-radius: 999px;
    display: inline-block;
}

/* Floating Q-sort peek */
.peek {
    position: fixed;
    left: 16px;
    bottom: 16px;
    width: 280px;
    height: 190px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .18);
    resize: both;
    overflow: auto;
    z-index: 9999;
}

.peek__bar {
    cursor: move;
    user-select: none;
    background: #0f172a;
    color: #fff;
    font-weight: 700;
    padding: 8px 10px;
    border-radius: 12px 12px 0 0;
    font-size: 12px;
}

.peek__body {
    padding: 8px;
}

.peek__body img {
    max-width: 100%;
    height: auto;
    display: block;
}


/* === Q-sort Stage 2 tray: collapsed/expanded controls === */
.staging__controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
}

.staging__hint {
    font-size: 12px;
    color: var(--muted);
}

.staging-wrap[data-collapsed="1"] .staging {
    max-height: var(--slot-h);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.staging-wrap[data-collapsed="0"] .staging {
    max-height: none;
    overflow: visible;
}

.btn--small {
    padding: 6px 10px;
    font-size: 12px;
}

.btn--tiny {
    padding: 4px 8px;
    font-size: 12px;
    opacity: .7;
}

.btn--tiny:hover {
    opacity: 1;
}

.icon {
    display: inline-block;
    vertical-align: -2px;
    margin-right: 6px;
}

/* Hide the text on small screens, keep just the icon */
@media (max-width:520px) {
    #btn-edit-label {
        display: none;
    }
}

