:root {
    --page: #f7f4ee;
    --panel: #fbfaf7;
    --ink: #202020;
    --muted: #68635d;
    --line: #d8d2c8;
    --line-strong: #bdb4a6;
    --accent: #2f4f4f;
    --accent-hover: #253f3f;
    --danger: #9f2d2d;
    --radius: 3px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    background: var(--page);
    color: var(--ink);
}

/* Landing page */

.landing-page {
    min-height: 100vh;
    padding: 56px 24px;
}

.landing-shell {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
}

.landing-card {
    border-top: 3px solid var(--ink);
    padding: 28px 0 34px;
}

.eyebrow {
    margin: 0 0 18px;
    color: var(--muted);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 3.7rem);
    font-weight: 500;
    line-height: 1;
}

.intro {
    max-width: 580px;
    margin: 22px 0 34px;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.65;
}

.meeting-form {
    max-width: 460px;
    display: grid;
    gap: 10px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

label {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.9rem;
    font-weight: 650;
}

input,
select,
button {
    font: inherit;
}

input,
select {
    width: 100%;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    padding: 10px 11px;
    background: #fffefa;
    color: var(--ink);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

input:focus,
select:focus {
    outline: 2px solid rgba(47, 79, 79, 0.22);
    border-color: var(--accent);
}

button {
    width: fit-content;
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    padding: 10px 15px;
    background: var(--accent);
    color: white;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 650;
    cursor: pointer;
}

button:not(:disabled):hover {
    background: var(--accent-hover);
}

button:disabled {
    border-color: var(--line-strong);
    background: #c8c1b6;
    cursor: not-allowed;
}

/* Temporary base styling for existing host/participant pages */

body:not(.landing-page) {
    padding: 32px;
}

section {
    max-width: 760px;
    margin: 0 0 24px;
    padding: 18px 0;
    border-top: 1px solid var(--line);
}

h2,
h3,
p,
ul,
ol {
    max-width: 760px;
}

a {
    color: var(--accent);
}

@media (max-width: 600px) {
    .landing-page {
        padding: 32px 20px;
    }

    .intro {
        font-size: 1rem;
    }

    button {
        width: 100%;
    }
}

/* App layout */

.app-shell {
    max-width: 1180px;
    margin: 0 auto;
}

.app-page {
    min-height: 100vh;
    padding: 28px;
    background: var(--page);
}

.app-header {
    margin: 0 0 24px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-end;
    border-bottom: 2px solid var(--ink);
    padding-bottom: 16px;
}

.app-header h1 {
    font-size: 2.2rem;
}

.header-meta {
    color: var(--muted);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 650;
    text-align: right;
}

.header-meta span {
    display: block;
    font-size: 1.4rem;
    color: var(--ink);
    font-weight: 600;
    line-height: 1.2;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
}

.dashboard-main {
    display: grid;
    grid-template-rows: auto auto auto 1fr;
    gap: 20px;
    min-height: 100%;
}

.participants-panel {
    min-height: 0;
    margin-bottom: 0px;
}

.panel {
    background: var(--panel);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    padding: 20px;
}

.dashboard-grid > .panel,
.dashboard-main > .panel {
    max-width: none;
    margin: 0;
}

.panel-header {
    border-bottom: 1px solid var(--line);
    margin-bottom: 16px;
    padding-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    min-height: 32px;
}

.panel h2 {
    margin: 0;
    font-size: 1rem;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.meeting-details {
    display: grid;
    gap: 11px;
    margin: 0 0 18px;
}

.meeting-details > div {
    display: grid;
    gap: 3px;
}

dt {
    color: var(--muted);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

dd {
    margin: 0;
    font-size: 1rem;
}

.helper-text {
    min-height: 1.2em;
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.danger-button {
    background: transparent;
    color: var(--danger);
    border-color: var(--danger);
}

.danger-button:hover {
    background: var(--danger);
    color: white;
}

.current-speaker {
    margin: 10px 0 22px;
    font-size: 2.2rem;
    line-height: 1.1;
}

.stack-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 22px;
}

.stack-list li {
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
}

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

.panel-count {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: normal;
    text-transform: none;
}

.sharing-tools {
    display: grid;
    gap: 10px;
    margin-bottom: 24px;
}

.sharing-tools label {
    margin-top: 14px;
}

.qr-frame {
    width: 100%;
    max-width: 220px;
    border: 1px solid var(--line-strong);
    background: white;
    padding: 10px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    margin-bottom: 16px;
}

.qr-frame img {
    display: block;
    width: 100%;
    height: auto;
}

.qr-button {
    cursor: pointer;
    appearance: none;
    border-radius: var(--radius);
}

.qr-button:hover {
    border-color: var(--accent);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.qr-button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

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

.button-link,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    padding: 10px 15px;
    background: transparent;
    color: var(--accent);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
}

.button-link:hover,
.secondary-button:hover {
    background: var(--accent);
    color: white;
}

.modal[hidden] {
    display: none;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 24px;
    overflow-y: auto;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(32, 32, 32, 0.55);
}

.modal-card {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    background: var(--panel);
    border: 1px solid var(--line-strong);
    padding: 24px;
    text-align: center;
}

.modal-card img {
    width: min(420px, 100%);
    height: auto;
    background: white;
    padding: 12px;
    border: 1px solid var(--line);
}

.modal-card p {
    margin: 16px auto 0;
    color: var(--muted);
}

.modal-close {
    margin-bottom: 16px;
}

@media (max-width: 600px) {
    .modal {
        align-items: start;
        padding: 18px;
    }

    .modal-card {
        max-height: calc(100vh - 36px);
    }
}

/* Participant view */

.participant-page {
    min-height: 100vh;
    padding: 24px;
    display: grid;
    place-items: center;
}

.participant-shell {
    width: min(100%, 440px);
}

.participant-card {
    border-top: 3px solid var(--ink);
    border-bottom: 1px solid var(--line-strong);
    padding: 28px 0 32px;
}

.participant-card h1 {
    font-size: 2.2rem;
    margin-bottom: 18px;
}

.meeting-title,
.participant-meeting-name {
    margin: 18px 0 28px;
    color: var(--ink);
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1.25;
}

.participant-form {
    display: grid;
    gap: 10px;
}

.joined-as {
    color: var(--muted);
    margin: 0 0 18px;
}

.participant-status {
    margin: 0 0 22px;
    padding: 12px 14px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: #fffefa;
    color: var(--ink);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 650;
    text-align: center;
}

.participant-status.status-raised {
    border-color: var(--accent);
    background: rgba(47, 79, 79, 0.08);
    color: var(--accent);
}

.participant-status.status-speaking {
    border-color: var(--accent);
    background: var(--accent);
    color: white;
}

.participant-help-text {
    max-width: 320px;
    margin: -6px auto 22px;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.45;
    text-align: center;
}

.participant-page-note {
    max-width: 320px;
    margin: 0 auto 22px;
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.4;
    text-align: center;
}

#leave-meeting-button {
    display: block;
    width: fit-content;
    margin: 0 auto;
}

.raise-hand-button {
    width: 210px;
    height: 210px;
    position: relative;
    overflow: visible;
    margin: 0 auto 24px;
    padding: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;

    border: 2px solid var(--accent);
    border-radius: 50%;

    background: white;
    color: var(--accent);

    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1rem;
    font-weight: 650;

    cursor: pointer;

    transition:
        background 150ms ease,
        color 150ms ease,
        border-color 150ms ease;
}

.raise-hand-button:not(:disabled):hover {
    background: rgba(47, 79, 79, 0.05);
}

.raise-hand-button.is-raised,
.raise-hand-button.is-speaking {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.raise-hand-button.is-raised:not(:disabled):hover,
.raise-hand-button.is-speaking:not(:disabled):hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.raise-hand-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.raise-hand-button.is-speaking {
    color: white;
}

.raise-hand-button.is-speaking i,
.raise-hand-button.is-speaking span {
    color: white;
}

.raise-hand-button i svg {
    width: 42px;
    height: 42px;
    stroke-width: 1.8;
}

.raise-hand-button span {
    font-size: 1rem;
    font-weight: 650;
    line-height: 1.3;
}

.raise-hand-button > :not(.speaker-progress-ring) {
    position: relative;
    z-index: 1;
}

.speaker-progress-ring-fill {
    fill: none;
    stroke: white;
    stroke-width: 4;
    stroke-linecap: round;
    transition: stroke-dashoffset 250ms linear, stroke 150ms ease;
}

.raise-hand-button .speaker-progress-ring {
    position: absolute;
    inset: -8px;
    width: calc(100% + 16px);
    height: calc(100% + 16px);
    pointer-events: none;
    transform: rotate(-90deg);
    opacity: 0;
    transition: opacity 150ms ease;
}

.raise-hand-button.has-timer .speaker-progress-ring {
    opacity: 1;
}

.speaker-progress-ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.18);
    stroke-width: 4;
}

.raise-hand-button.timer-warning .speaker-progress-ring-fill {
    stroke: #a86d1d;
}

.raise-hand-button.timer-over .speaker-progress-ring-fill {
    stroke: var(--danger);
}

@media (max-width: 520px) {
    .participant-page {
        align-items: start;
        padding: 24px 20px;
    }

    .raise-hand-button {
        width: 170px;
        height: 170px;
    }
}

.manual-participant-form {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    opacity: 0.82;
}

.manual-participant-form:focus-within {
    opacity: 1;
}

.manual-entry-label {
    margin: 0 0 10px;
    color: var(--muted);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.85rem;
    font-weight: 650;
}

.manual-participant-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.manual-participant-row input,
.manual-participant-row select {
    width: 100%;
}

.manual-participant-row button {
    white-space: nowrap;
    align-self: stretch;
}

/* Small screens */

@media (max-width: 700px) {

    .manual-participant-row {
        grid-template-columns: 1fr;
    }

    .manual-participant-row button {
        justify-self: stretch;
    }

}

.moderation-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: center;
}

.moderation-actions {
    display: inline-flex;
    gap: 6px;
    flex-shrink: 0;
}

.small-button {
    padding: 5px 8px;
    font-size: 0.78rem;
    border-width: 1px;
}

.danger-small-button {
    background: transparent;
    color: var(--danger);
    border-color: var(--danger);
}

.danger-small-button:hover {
    background: var(--danger);
    color: white;
}

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

.share-mode-toggle {
    position: relative;
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    width: fit-content;
    min-width: 190px;
    padding: 3px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: #fffefa;
    overflow: hidden;
}

.share-mode-toggle::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: calc((100% - 6px) / 2);
    height: calc(100% - 6px);
    border-radius: 999px;
    background: var(--accent);
    transition: transform 180ms ease;
}

.share-mode-toggle.is-cohost::before {
    transform: translateX(100%);
}

.share-mode-button {
    position: relative;
    z-index: 1;
    min-width: 92px;
    border: none;
    border-radius: 999px;
    padding: 7px 12px;
    background: transparent;
    color: var(--muted);
    font-size: 0.85rem;
    text-align: center;
    transition: color 180ms ease;
}

.share-mode-button:hover {
    background: transparent;
    color: var(--accent);
}

.share-mode-button.is-active {
    background: transparent;
    color: white;
}

.cohost-notice {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #faf8f3;
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.15;
}

.cohost-notice svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    align-self: center;
    color: var(--accent);
}

.cohost-notice-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
    position: relative;
    top: 1.5px;
}

.cohost-notice-text strong {
    margin: 0;
}

.cohost-notice-text span {
    margin: 0;
}

.meeting-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.meeting-actions > * {
    flex: 1;
    white-space: nowrap;
}

[hidden] {
    display: none !important;
}

.landing-title-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.help-modal-card {
    text-align: left;
}

.help-modal-card h2 {
    margin: 0 0 16px;
}

.help-modal-card h3 {
    margin: 22px 0 10px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.help-modal-card p,
.help-modal-card li {
    color: var(--muted);
    line-height: 1.55;
}

.help-modal-card ol,
.help-modal-card ul {
    padding-left: 22px;
}

.help-modal-note {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.help-modal-card button {
    margin-top: 24px;
}

.speaker-timer {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.dashboard-footer {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-link {
    width: auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--muted);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.footer-link:hover {
    background: transparent;
    color: var(--accent);
}

.footer-link svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.compact-select {
    max-width: 180px;
    padding: 7px 9px;
    font-size: 0.9rem;
}

.speaker-timer-warning {
    color: #a86d1d;
}

.speaker-timer-over {
    color: var(--danger);
}

.participant-speaking-timer {
    display: inline;
    color: var(--muted);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1rem;
    font-weight: 400;
    font-variant-numeric: tabular-nums;
}

.participant-speaking-timer.speaker-timer-warning {
    color: #a86d1d;
}

.participant-speaking-timer.speaker-timer-over {
    color: var(--danger);
}

.feedback-form {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.feedback-form label span {
    color: var(--muted);
    font-weight: 400;
}

.feedback-form textarea {
    width: 100%;
    resize: vertical;
    min-height: 120px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    padding: 10px 11px;
    background: #fffefa;
    color: var(--ink);
    font: inherit;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.feedback-form textarea:focus {
    outline: 2px solid rgba(47, 79, 79, 0.22);
    border-color: var(--accent);
}

.feedback-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.feedback-form-actions button {
    white-space: nowrap;
}

.feedback-status {
    margin: 4px 0 0;
}

.password-display {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    max-width: 220px;
}

.password-display input {
    min-width: 0;
    flex: 1;
    padding: 7px 9px;
    font-size: 0.9rem;
}

.password-toggle-button {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    padding: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: none;
    background: transparent;
    color: var(--muted);
}

.password-toggle-button:hover {
    background: transparent;
    color: var(--accent);
}

.password-toggle-button svg {
    width: 16px;
    height: 16px;
}

.landing-actions {
    display: grid;
    gap: 28px;
    margin-top: 30px;
}

.landing-action-section {
    max-width: 460px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.landing-action-section h2 {
    margin: 0 0 16px;
    font-size: 1rem;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.landing-join-toggle {
    margin-bottom: 4px;
}

.landing-error-message {
    max-width: 580px;
    margin: 0 0 24px;
    padding: 12px 14px;
    border: 1px solid var(--danger);
    background: rgba(159, 45, 45, 0.06);
    color: var(--danger);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.92rem;
    line-height: 1.4;
}

.agenda-toggle-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    color: var(--muted);
    cursor: pointer;
}

.agenda-toggle-row input {
    width: auto;
}

.agenda-builder {
    display: grid;
    gap: 8px;
    margin: 4px 0 8px;
    padding: 12px;
    border: 1px solid var(--line);
    background: #faf8f3;
}

.agenda-builder-header,
.agenda-row {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 70px 24px 24px;
    gap: 8px;
    align-items: center;
}

.agenda-builder-header {
    color: var(--muted);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
}

.agenda-builder-header span:first-child {
    grid-column: 2;
}

.agenda-builder-header span:last-child {
    grid-column: 3;
}

.agenda-row-number {
    color: var(--muted);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 650;
}

.agenda-drag {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    cursor: grab;
    opacity: 0.55;
}

.agenda-drag:hover {
    opacity: 1;
    color: var(--accent);
}

.agenda-drag:active {
    cursor: grabbing;
}

.agenda-drag svg {
    width: 16px;
    height: 16px;
}

.agenda-row input {
    padding: 8px 9px;
    font-size: 0.9rem;
}

@media (max-width: 520px) {
    .agenda-builder-header,
    .agenda-row {
        grid-template-columns: 24px minmax(0, 1fr) 60px 22px 22px;
        gap: 6px;
    }
}

.agenda-current-title {
    margin: 0 0 6px;
    font-size: 1.35rem;
    line-height: 1.2;
}

.agenda-current-meta {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.agenda-controls {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

.agenda-controls button {
    white-space: nowrap;
}

.agenda-empty-state {
    display: flex;
    justify-content: flex-start;
}

.agenda-editor {
    display: grid;
    gap: 10px;
}

.agenda-editor-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.secondary-small-button {
    background: transparent;
    color: var(--accent);
}

.secondary-small-button:hover {
    background: var(--accent);
    color: white;
}

.agenda-delete-button,
.agenda-delete-button:hover,
.agenda-delete-button:focus,
.agenda-delete-button:active {
    width: auto;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    box-shadow: none;
}

.agenda-delete-button:hover,
.agenda-delete-button:focus-visible {
    background: transparent;
    color: var(--danger);
}

.queue-row {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    gap: 10px;
}

.queue-drag {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    cursor: grab;
    opacity: 0.55;
}

.queue-drag:hover {
    opacity: 1;
    color: var(--accent);
}

.queue-drag:active {
    cursor: grabbing;
}

.queue-drag svg {
    width: 16px;
    height: 16px;
}

.queue-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 1.25rem;
    height: 1.25rem;
    margin: 0 3px;

    border-radius: 999px;
    background: var(--danger);
    color: white;

    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
}

@media (max-width: 860px) {
    .app-page {
        padding: 20px;
    }

    .app-header {
        display: block;
    }

    .header-meta {
        margin-top: 12px;
        text-align: left;
    }

    .dashboard-grid {
        display: flex;
        flex-direction: column;
    }

    .dashboard-main {
        display: grid;
        gap: 20px;
        order: 1;
    }

    .meeting-panel {
        order: 2;
    }
}

.can-queue-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-self: end;

    color: var(--muted);

    font-size: 0.82rem;
    font-weight: 600;

    white-space: nowrap;
}

.can-queue-toggle input {
    width: auto;
    accent-color: var(--accent);
    cursor: pointer;
}