.phx-hub,
.phx-hub-front {
    --phx-hub-text: #ffffff;
    --phx-hub-primary: #ff9933;
    --phx-hub-red: #cc3300;
    --phx-hub-yellow: #ffcc33;
    --phx-hub-bg: #333333;
    --phx-hub-black: #000000;
    --phx-hub-card: rgba(10, 12, 14, 0.92);
    --phx-hub-border: rgba(255, 153, 51, 0.45);
    --phx-hub-glow: rgba(255, 153, 51, 0.18);
    --phx-hub-muted: rgba(255, 255, 255, 0.72);
    --phx-hub-soft: rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(135deg, rgba(255, 153, 51, 0.08), transparent 32%),
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.08) 1px, transparent 0) 0 0 / 32px 32px,
        var(--phx-hub-bg);
    color: var(--phx-hub-text);
    font-family: Barlow, Arial, sans-serif;
    margin-inline: auto;
    max-width: 1440px;
    padding: clamp(18px, 2vw, 30px);
}

.phx-hub *,
.phx-hub-front * {
    box-sizing: border-box;
}

.phx-hub h1,
.phx-hub h2,
.phx-hub h3,
.phx-hub h4,
.phx-hub-front h1,
.phx-hub-front h2,
.phx-hub-front h3,
.phx-hub-front h4 {
    color: var(--phx-hub-primary);
    font-family: "Franklin Gothic Heavy Regular", "Franklin Gothic Heavy", "Franklin Gothic Demi", "Arial Black", Impact, sans-serif;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.phx-hub-header {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0.18));
    border: 1px solid var(--phx-hub-border);
    border-left: 5px solid var(--phx-hub-primary);
    border-radius: 6px;
    box-shadow: 0 0 24px rgba(255, 153, 51, 0.08);
    padding: clamp(16px, 2vw, 24px);
}

.phx-hub-header .phx-kicker,
.phx-hub-section-heading .phx-kicker {
    color: var(--phx-hub-yellow);
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.phx-hub-header p {
    color: var(--phx-hub-muted);
    max-width: 780px;
}

.phx-hub-role-grid {
    align-content: start;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.phx-hub-role-card {
    align-items: center;
    background: var(--phx-hub-card);
    border: 1px solid var(--phx-hub-border);
    border-radius: 6px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    display: grid;
    gap: 4px 12px;
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 12px 14px;
}

.phx-hub-role-card i {
    align-items: center;
    background: rgba(255, 153, 51, 0.08);
    border: 1px solid rgba(255, 153, 51, 0.44);
    border-radius: 6px;
    color: var(--phx-hub-primary);
    display: inline-flex;
    font-style: normal;
    grid-row: span 2;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.phx-hub-role-card i .phx-icon {
    height: 24px;
    width: 24px;
}

.phx-hub-role-card small {
    color: var(--phx-hub-yellow);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.phx-hub-role-card strong {
    color: var(--phx-hub-text);
    font-size: 15px;
}

.phx-hub-tabs {
    align-items: center;
    border-bottom: 1px solid var(--phx-hub-border);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    overflow-x: auto;
    padding: 0 0 14px;
    scrollbar-color: var(--phx-hub-primary) rgba(0, 0, 0, 0.28);
}

.phx-hub-tab {
    align-items: center;
    background: rgba(0, 0, 0, 0.46);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 4px;
    color: var(--phx-hub-text);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 800;
    gap: 8px;
    padding: 9px 12px;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.phx-hub-tab:hover,
.phx-hub-tab:focus,
.phx-hub-tab.is-active {
    background: var(--phx-hub-primary);
    border-color: var(--phx-hub-primary);
    box-shadow: 0 0 18px var(--phx-hub-glow);
    color: var(--phx-hub-black);
    outline: none;
}

.phx-icon {
    align-items: center;
    display: inline-flex;
    flex: 0 0 auto;
    height: 1.25em;
    justify-content: center;
    width: 1.25em;
}

.phx-icon svg {
    display: block;
    fill: currentColor;
    height: 100%;
    overflow: visible;
    stroke: none;
    width: 100%;
}

.phx-hub-tab .phx-icon {
    color: currentColor;
    height: 18px;
    width: 18px;
}

.phx-hub-subtabs {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: -14px 0 22px;
    padding: 0 0 12px;
}

.phx-dashboard-subnav-link {
    align-items: center;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 153, 51, 0.22);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.82);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 800;
    gap: 7px;
    line-height: 1.2;
    min-height: 30px;
    padding: 7px 10px;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.phx-dashboard-subnav-link:hover,
.phx-dashboard-subnav-link:focus,
.phx-dashboard-subnav-link.is-active {
    background: rgba(255, 153, 51, 0.15);
    border-color: var(--phx-hub-primary);
    color: var(--phx-hub-primary);
    outline: none;
}

.phx-hub-stat-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.phx-hub-stat-card {
    background: var(--phx-hub-card);
    border: 1px solid var(--phx-hub-border);
    border-radius: 6px;
    display: grid;
    gap: 5px;
    min-height: 128px;
    padding: 16px;
    position: relative;
}

.phx-hub-stat-card i {
    align-items: center;
    background: rgba(255, 153, 51, 0.14);
    border: 1px solid var(--phx-hub-border);
    border-radius: 6px;
    color: var(--phx-hub-yellow);
    display: inline-flex;
    font-style: normal;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.phx-hub-stat-card i .phx-icon {
    height: 22px;
    width: 22px;
}

.phx-hub-stat-card span {
    color: var(--phx-hub-primary);
    font-weight: 800;
    text-transform: uppercase;
}

.phx-hub-stat-card strong {
    color: var(--phx-hub-text);
    font-family: "Franklin Gothic Heavy Regular", "Franklin Gothic Heavy", "Franklin Gothic Demi", "Arial Black", Impact, sans-serif;
    font-size: 34px;
    line-height: 1;
}

.phx-hub-stat-card small {
    color: var(--phx-hub-muted);
}

.phx-hub-section-heading {
    align-items: end;
    border-left: 5px solid var(--phx-hub-primary);
    display: grid;
    gap: 2px;
    margin-bottom: 14px;
    padding-left: 13px;
}

.phx-hub-section-heading h2,
.phx-hub-section-heading h3 {
    color: var(--phx-hub-text);
    margin-bottom: 0;
}

.phx-hub-card-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.phx-hub-action-card,
.phx-hub .phx-front-card,
.phx-hub-front .phx-front-card,
.phx-hub-front .phx-agenda-item {
    background: var(--phx-hub-card);
    border: 1px solid var(--phx-hub-border);
    border-radius: 6px;
    box-shadow: 0 0 0 1px rgba(255, 153, 51, 0.03), 0 16px 36px rgba(0, 0, 0, 0.22);
}

.phx-hub-action-card {
    min-height: 166px;
    overflow: hidden;
    position: relative;
}

.phx-hub-action-card::after {
    color: rgba(255, 153, 51, 0.08);
    content: attr(data-watermark);
    font-family: "Franklin Gothic Heavy Regular", "Franklin Gothic Heavy", "Franklin Gothic Demi", "Arial Black", Impact, sans-serif;
    font-size: 58px;
    font-weight: 800;
    position: absolute;
    right: 12px;
    top: 8px;
}

.phx-hub-card-badge,
.phx-dashboard-icon {
    align-items: center;
    background: rgba(255, 153, 51, 0.08);
    border: 1px solid rgba(255, 153, 51, 0.58);
    border-radius: 6px;
    color: var(--phx-hub-primary);
    display: inline-flex;
    font-weight: 900;
    height: 44px;
    justify-content: center;
    width: 48px;
}

.phx-hub-card-badge .phx-icon,
.phx-dashboard-icon .phx-icon {
    filter: drop-shadow(0 0 5px rgba(255, 153, 51, 0.22));
    height: 23px;
    width: 23px;
}

.phx-dashboard-action {
    align-items: flex-start;
    display: grid;
    gap: 14px;
    grid-template-columns: 48px minmax(0, 1fr);
}

.phx-dashboard-card-body {
    display: flex;
    flex-direction: column;
    min-height: 128px;
}

.phx-dashboard-action h3 {
    color: var(--phx-hub-primary);
    font-size: 16px;
    line-height: 1.25;
    margin: 0 0 8px;
}

.phx-dashboard-action p {
    line-height: 1.48;
}

.phx-dashboard-access {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 153, 51, 0.22);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    margin: auto 0 10px;
    padding: 4px 7px;
    text-transform: uppercase;
}

.phx-hub-btn,
.phx-hub-front .phx-front-button,
.phx-hub-front button[type="submit"] {
    border-radius: 4px;
    font-family: Barlow, Arial, sans-serif;
    font-weight: 800;
    min-height: 38px;
    text-transform: uppercase;
    transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.phx-hub-btn-primary,
.phx-hub-front .phx-front-button:not(.phx-front-button-secondary) {
    background: var(--phx-hub-primary);
    border-color: var(--phx-hub-primary);
    color: var(--phx-hub-black);
}

.phx-hub-btn-secondary,
.phx-hub-front .phx-front-button-secondary {
    background: rgba(0, 0, 0, 0.42);
    border: 1px solid var(--phx-hub-border);
    color: var(--phx-hub-text);
}

.phx-hub-front .phx-front-button:hover,
.phx-hub-front .phx-front-button:focus,
.phx-hub-front button[type="submit"]:hover,
.phx-hub-front button[type="submit"]:focus {
    box-shadow: 0 0 0 3px var(--phx-hub-glow);
    outline: none;
}

.phx-hub-form,
.phx-hub-front .phx-front-form,
.phx-hub-front form {
    color: var(--phx-hub-text);
}

.phx-hub-front label {
    color: var(--phx-hub-text);
    font-weight: 800;
}

.phx-hub-front > .phx-session-head {
    display: grid;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 18px;
}

.phx-hub-front > .phx-session-head .phx-kicker,
.phx-hub-front > .phx-session-head h1,
.phx-hub-front > .phx-session-head p {
    margin: 0;
}

.phx-hub-front input,
.phx-hub-front select,
.phx-hub-front textarea {
    background: rgba(0, 0, 0, 0.46);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 4px;
    color: var(--phx-hub-text);
}

.phx-hub-front input:focus,
.phx-hub-front select:focus,
.phx-hub-front textarea:focus {
    border-color: var(--phx-hub-primary);
    box-shadow: 0 0 0 3px var(--phx-hub-glow);
    outline: none;
}

.phx-hub input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
.phx-hub select,
.phx-hub textarea,
.phx-hub-front input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
.phx-hub-front select,
.phx-hub-front textarea {
    background: rgba(0, 0, 0, 0.58);
    border: 1px solid rgba(255, 153, 51, 0.34);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    color: var(--phx-hub-text);
    max-width: 100%;
    min-height: 38px;
}

.phx-hub input[type="date"],
.phx-hub input[type="datetime-local"],
.phx-hub input[type="time"],
.phx-hub-front input[type="date"],
.phx-hub-front input[type="datetime-local"],
.phx-hub-front input[type="time"] {
    color-scheme: dark;
}

.phx-hub input[type="checkbox"],
.phx-hub input[type="radio"],
.phx-hub-front input[type="checkbox"],
.phx-hub-front input[type="radio"] {
    accent-color: var(--phx-hub-primary);
}

.phx-hub input::placeholder,
.phx-hub textarea::placeholder,
.phx-hub-front input::placeholder,
.phx-hub-front textarea::placeholder {
    color: rgba(255, 255, 255, 0.48);
}

.phx-hub select option,
.phx-hub-front select option {
    background: #111111;
    color: var(--phx-hub-text);
}

.phx-hub a,
.phx-hub p,
.phx-hub strong,
.phx-hub small,
.phx-hub span,
.phx-hub td,
.phx-hub th,
.phx-hub-front a,
.phx-hub-front p,
.phx-hub-front strong,
.phx-hub-front small,
.phx-hub-front span,
.phx-hub-front td,
.phx-hub-front th {
    overflow-wrap: anywhere;
}

.phx-hub form button,
.phx-hub .phx-hub-btn,
.phx-hub-front form button,
.phx-hub-front .phx-front-button {
    max-width: 100%;
    white-space: normal;
}

.phx-hub .phx-hub-tabs,
.phx-hub .phx-hub-subtabs,
.phx-hub-front .phx-hub-tabs,
.phx-hub-front .phx-hub-subtabs,
.phx-hub-front .phx-event-actions,
.phx-hub-front .phx-profile-actions,
.phx-hub-front .phx-calendar-actions,
.phx-hub-front .phx-manager-actions,
.phx-hub-front .phx-manager-row-actions,
.phx-hub-front .phx-dashboard-panel-actions,
.phx-hub-front .phx-member-directory-filter-actions,
.phx-hub-front .phx-member-admin-actions,
.phx-hub-front .phx-speaker-sync-actions,
.phx-hub-front .phx-speaker-actions {
    flex-wrap: wrap;
    min-width: 0;
}

.phx-hub-table,
.phx-hub-front table,
.phx-members-admin-table {
    background: var(--phx-hub-card);
    border: 1px solid var(--phx-hub-border);
    border-collapse: separate;
    border-spacing: 0;
    color: var(--phx-hub-text);
    overflow: hidden;
    width: 100%;
}

.phx-hub-front th {
    border-bottom: 2px solid var(--phx-hub-primary);
    color: var(--phx-hub-yellow);
    font-size: 12px;
    text-align: left;
    text-transform: uppercase;
}

.phx-hub-front td,
.phx-hub-front th {
    padding: 10px 12px;
}

.phx-hub-front tr:hover td {
    background: rgba(255, 153, 51, 0.08);
}

.phx-hub-alert {
    border-left: 5px solid var(--phx-hub-primary);
}

.phx-hub-alert-success {
    border-left-color: #75c56e;
}

.phx-hub-alert-warning {
    border-left-color: var(--phx-hub-yellow);
}

.phx-hub-alert-error {
    border-left-color: var(--phx-hub-red);
}

.phx-hub-alert-info {
    border-left-color: var(--phx-hub-primary);
}

.phx-calendar-grid,
.phx-signup-columns,
.phx-manager-layout,
.phx-resolution-history-layout,
.phx-moderation-grid {
    gap: 16px;
}

.phx-calendar-day,
.phx-signup-column,
.phx-manager-session-link,
.phx-resolution-history-item {
    background: rgba(0, 0, 0, 0.32);
    border-color: var(--phx-hub-border);
    border-radius: 6px;
}

.phx-resolution-history-filter {
    align-items: end;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 12px;
}

.phx-resolution-history-filter .phx-member-directory-filter-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
}

.phx-resolution-history-filter .phx-front-button,
.phx-resolution-history-filter button,
.phx-resolution-history-filter a {
    min-width: 112px;
    text-align: center;
    white-space: nowrap;
}

.phx-front-notice,
.phx-empty-state {
    background: rgba(255, 153, 51, 0.12);
    border: 1px solid var(--phx-hub-border);
    border-radius: 6px;
    color: var(--phx-hub-text);
    padding: 12px 14px;
}

@media (max-width: 900px) {
    .phx-hub,
    .phx-hub-front {
        width: min(100%, calc(100vw - 18px));
    }

    .phx-hub-tabs,
    .phx-hub-subtabs {
        flex-wrap: wrap;
        margin-inline: -4px;
        padding-inline: 4px;
    }

    .phx-hub-card-grid,
    .phx-hub-stat-grid,
    .phx-hub-role-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (max-width: 620px) {
    .phx-hub,
    .phx-hub-front {
        padding: 14px;
    }

    .phx-hub-card-grid,
    .phx-hub-stat-grid,
    .phx-hub-role-grid,
    .phx-dashboard-head {
        grid-template-columns: 1fr;
    }

    .phx-hub-front table,
    .phx-members-admin-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .phx-hub-front .phx-front-button,
    .phx-hub-front button[type="submit"] {
        width: 100%;
    }
}

/* Polished hub workspaces */
.phx-hub,
.phx-hub-front {
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
    font-size: 15px;
    line-height: 1.55;
    max-width: none;
    width: min(1540px, calc(100vw - 44px));
}

.phx-standalone-main {
    padding-block: clamp(18px, 2vw, 34px);
}

.phx-dashboard-panel > .phx-hub-front,
.phx-hub-front .phx-dashboard-panel > .phx-hub-front {
    border: 0;
    box-shadow: none;
    width: 100%;
}

.phx-hub h1,
.phx-hub-front h1 {
    font-size: clamp(28px, 2.3vw, 42px);
}

.phx-hub h2,
.phx-hub-front h2 {
    font-size: clamp(20px, 1.35vw, 26px);
}

.phx-hub h3,
.phx-hub-front h3 {
    font-size: 18px;
}

.phx-hub p,
.phx-hub-front p {
    color: rgba(255, 255, 255, 0.84);
}

.phx-hub-header {
    align-items: center;
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
    margin-bottom: 18px;
}

.phx-dashboard-context-bar.phx-hub-header {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 16px 20px;
}

.phx-hub-tabs {
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 153, 51, 0.18);
    border-left: 0;
    border-right: 0;
    gap: 7px;
    margin-bottom: 24px;
    padding: 10px 0;
}

.phx-hub-tab {
    min-height: 36px;
    padding: 9px 13px;
}

.phx-hub-front .phx-front-card,
.phx-hub-front .phx-agenda-item,
.phx-hub-action-card {
    border-color: rgba(255, 153, 51, 0.38);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.phx-hub-front .phx-front-card {
    padding: clamp(16px, 1.4vw, 22px);
}

.phx-hub-card-grid,
.phx-dashboard-action-grid {
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.phx-dashboard-stats,
.phx-hub-stat-grid {
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.phx-hub-stat-card,
.phx-dashboard-stat {
    min-height: 116px;
}

.phx-hub-front .phx-front-button,
.phx-hub-front button[type="submit"],
.phx-hub-btn {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    letter-spacing: 0;
    white-space: nowrap;
}

.phx-hub-front .phx-front-button-small,
.phx-hub-front .phx-hub-btn-small {
    font-size: 13px;
    min-height: 34px;
    padding: 8px 11px;
}

.phx-hub-front form {
    gap: 12px;
}

.phx-hub-front label {
    gap: 6px;
}

.phx-hub-front input,
.phx-hub-front select,
.phx-hub-front textarea {
    min-height: 40px;
    padding: 9px 10px;
}

.phx-hub-front textarea {
    line-height: 1.45;
}

/* Unified dashboard shell */
.phx-dashboard.phx-hub {
    padding: clamp(22px, 2vw, 32px);
}

.phx-dashboard .phx-hub-header {
    background:
        linear-gradient(180deg, rgba(255, 153, 51, 0.055), rgba(0, 0, 0, 0.2)),
        rgba(14, 15, 16, 0.66);
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.68fr);
    margin: 0;
    min-height: 132px;
    padding: 22px 24px;
}

.phx-dashboard .phx-hub-header h1 {
    font-size: clamp(28px, 2vw, 38px);
    line-height: 1;
    margin: 0 0 12px;
}

.phx-dashboard .phx-hub-header p:not(.phx-kicker) {
    color: rgba(255, 255, 255, 0.78);
    font-size: 15px;
    line-height: 1.55;
    margin: 0;
    max-width: 760px;
}

.phx-dashboard .phx-dashboard-badges {
    grid-template-columns: repeat(3, minmax(130px, 1fr));
}

.phx-dashboard .phx-hub-role-card {
    min-height: 58px;
    padding: 9px 11px;
}

.phx-dashboard .phx-hub-role-card i {
    height: 34px;
    width: 34px;
}

.phx-dashboard .phx-hub-role-card i .phx-icon {
    height: 19px;
    width: 19px;
}

.phx-dashboard .phx-hub-tabs {
    align-items: center;
    background: rgba(0, 0, 0, 0.24);
    border-color: rgba(255, 153, 51, 0.28);
    border-top: 0;
    gap: 8px;
    margin: 0;
    min-height: 58px;
    padding: 10px 0;
}

.phx-dashboard .phx-hub-subtabs {
    align-items: center;
    background: rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(255, 153, 51, 0.14);
    gap: 8px;
    margin: 0 0 28px;
    min-height: 44px;
    padding: 8px 0;
}

.phx-dashboard .phx-hub-subtabs.is-empty {
    opacity: 0;
    pointer-events: none;
}

.phx-dashboard .phx-hub-tab,
.phx-dashboard .phx-dashboard-subnav-link {
    min-height: 34px;
}

.phx-dashboard .phx-dashboard-panel {
    gap: 22px;
}

.phx-dashboard .phx-dashboard-panel > .phx-hub-front {
    margin: 0;
    padding: 0;
}

.phx-dashboard .phx-front-card,
.phx-dashboard .phx-hub-action-card,
.phx-dashboard .phx-agenda-item {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(0, 0, 0, 0.08)),
        var(--phx-hub-card);
}

.phx-dashboard input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
.phx-dashboard select,
.phx-dashboard textarea {
    background: rgba(0, 0, 0, 0.58);
    border: 1px solid rgba(255, 153, 51, 0.22);
    color: var(--phx-hub-text);
}

.phx-dashboard input:not([type="checkbox"]):not([type="radio"]):focus,
.phx-dashboard select:focus,
.phx-dashboard textarea:focus {
    border-color: var(--phx-hub-primary);
    box-shadow: 0 0 0 3px rgba(255, 153, 51, 0.16);
}

.phx-dashboard input::placeholder,
.phx-dashboard textarea::placeholder {
    color: rgba(255, 255, 255, 0.48);
}

.phx-dashboard .phx-dashboard-section {
    margin-top: 30px;
}

.phx-dashboard .phx-dashboard-section:first-child {
    margin-top: 0;
}

.phx-dashboard .phx-dashboard-section-head {
    margin-bottom: 16px;
}

.phx-dashboard .phx-hub-card-grid,
.phx-dashboard .phx-dashboard-action-grid {
    align-items: stretch;
}

.phx-dashboard .phx-member-profile,
.phx-dashboard .phx-applications,
.phx-dashboard .phx-event-manager,
.phx-dashboard .phx-session-manager,
.phx-dashboard .phx-members-admin-panel {
    max-width: none;
    width: 100%;
}

.phx-dashboard .phx-manager-layout,
.phx-dashboard .phx-application-layout {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

.phx-dashboard .phx-profile-head,
.phx-dashboard .phx-member-directory-filter,
.phx-dashboard .phx-resolution-history-layout {
    width: 100%;
}

/* Event planning */
.phx-event-manager,
.phx-session-manager,
.phx-members-admin-panel,
.phx-member-profile {
    width: 100%;
}

.phx-manager-layout {
    gap: 18px;
    grid-template-columns: minmax(420px, 0.92fr) minmax(520px, 1.08fr);
}

.phx-event-manager .phx-manager-form,
.phx-session-manager .phx-manager-form {
    position: sticky;
    top: 28px;
}

.phx-manager-form .phx-front-form {
    display: grid;
    gap: 12px;
}

.phx-manager-list {
    min-height: 260px;
}

.phx-manager-session-list {
    gap: 10px;
}

.phx-manager-session-link {
    border-radius: 6px;
    padding: 13px 15px;
}

.phx-manager-session-link strong {
    font-size: 16px;
}

/* Member administration */
.phx-members-admin-panel {
    display: grid;
    gap: 18px;
}

.phx-members-admin-panel > .phx-manager-selected-head {
    align-items: start;
    border-bottom: 1px solid rgba(255, 153, 51, 0.28);
    padding-bottom: 14px;
}

.phx-member-admin-filter {
    gap: 12px;
    grid-template-columns: minmax(260px, 1.25fr) repeat(3, minmax(180px, 0.75fr)) auto;
    margin: 0;
    padding: 14px;
}

.phx-member-health-grid {
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.phx-member-health-grid span {
    border-radius: 6px;
    padding: 10px 12px;
}

.phx-member-admin-row {
    align-items: start;
    border-color: rgba(255, 153, 51, 0.24);
    border-left-color: var(--phx-hub-primary);
    border-radius: 6px;
    gap: 14px;
    grid-template-columns: minmax(190px, 0.8fr) minmax(260px, 1.15fr) minmax(280px, 1fr) minmax(120px, 0.45fr) minmax(280px, 0.95fr);
    padding: 16px;
}

.phx-member-admin-row > div:first-child strong {
    color: var(--phx-hub-text);
    font-size: 17px;
}

.phx-member-admin-badges {
    align-items: flex-start;
}

.phx-member-admin-badges span,
.phx-member-card-badges span {
    border-radius: 5px;
    padding: 5px 7px;
}

.phx-member-rank-form {
    align-items: center;
    grid-template-columns: minmax(160px, 1fr) auto;
}

.phx-member-rank-sync {
    grid-column: 1;
    grid-row: 2;
}

.phx-member-rank-form button {
    align-self: end;
    grid-column: 2;
    grid-row: 1 / span 2;
}

.phx-member-admin-actions {
    justify-content: flex-end;
}

.phx-member-admin-editor {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 10px;
}

/* Session moderation */
.phx-selected-session {
    gap: 16px;
}

.phx-manager-event-row {
    align-items: center;
    border-radius: 6px;
    gap: 12px;
}

.phx-speaker-qr-box {
    max-width: none;
}

.phx-session-workflow {
    display: grid;
    gap: 14px;
}

.phx-session-state-grid,
.phx-session-workflow-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.phx-session-state-grid span,
.phx-session-workflow-grid span {
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 153, 51, 0.18);
    border-radius: 6px;
    color: var(--phx-hub-muted);
    display: grid;
    gap: 3px;
    min-height: 58px;
    padding: 10px;
}

.phx-session-state-grid strong,
.phx-session-workflow-grid strong {
    color: var(--phx-hub-primary);
    font-size: 1.12rem;
    line-height: 1;
}

.phx-session-state-grid .is-done,
.phx-session-workflow-grid .is-done {
    border-color: rgba(89, 209, 139, 0.45);
}

.phx-session-state-grid .is-done strong,
.phx-session-workflow-grid .is-done strong {
    color: #7ee6a0;
}

.phx-session-state-grid .is-open,
.phx-session-workflow-grid .is-open {
    background: rgba(255, 153, 51, 0.11);
    border-color: rgba(255, 153, 51, 0.48);
}

.phx-moderation-board {
    display: grid;
    gap: 18px;
}

.phx-moderation-speaker-dashboard {
    background: linear-gradient(135deg, rgba(255, 153, 51, 0.12), rgba(0, 0, 0, 0.2));
    border-color: rgba(255, 153, 51, 0.46);
}

.phx-moderation-top-list {
    gap: 16px;
}

.phx-moderation-top {
    border-color: rgba(255, 153, 51, 0.3);
    border-radius: 6px;
    padding: 16px;
}

.phx-moderation-top header {
    align-items: center;
    border-bottom: 1px solid rgba(255, 153, 51, 0.18);
    padding-bottom: 10px;
}

.phx-moderation-grid {
    align-items: start;
    gap: 16px;
    grid-template-columns: minmax(440px, 1.2fr) minmax(360px, 0.8fr);
}

.phx-moderation-notes-panel,
.phx-moderation-resolution-panel {
    border-color: rgba(255, 153, 51, 0.22);
    padding: 14px;
}

.phx-moderation-notes-panel {
    align-self: start;
}

.phx-moderation-notes-panel h4,
.phx-moderation-resolution-panel h4 {
    color: var(--phx-hub-yellow);
    margin-top: 0;
}

.phx-agenda-notes-box textarea {
    min-height: 170px;
}

.phx-resolution-manager-box {
    border-radius: 6px;
}

.phx-manager-agenda-list li {
    border-radius: 6px;
}

/* Member profile */
.phx-member-profile {
    max-width: 1320px;
}

.phx-member-profile .phx-session-head {
    border-bottom-width: 1px;
}

.phx-profile-quick-grid,
.phx-profile-meta-grid {
    gap: 14px;
}

.phx-profile-history .phx-profile-timeline {
    max-height: 560px;
    overflow: auto;
    padding-right: 6px;
    scrollbar-color: var(--phx-hub-primary) rgba(0, 0, 0, 0.26);
}

/* Applications */
.phx-applications {
    max-width: none;
    width: min(1520px, calc(100vw - 28px));
}

.phx-applications .phx-front-card {
    padding: 18px;
}

.phx-application-head {
    align-items: center;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.phx-application-head h2,
.phx-application-form-card h3,
.phx-application-list-card h3,
.phx-application-templates h3 {
    margin-top: 0;
}

.phx-application-stats {
    display: grid;
    gap: 10px;
    min-width: 260px;
}

.phx-application-stats span {
    background: rgba(255, 153, 51, 0.12);
    border: 1px solid rgba(255, 153, 51, 0.26);
    border-radius: 6px;
    color: var(--phx-hub-text);
    padding: 10px 12px;
}

.phx-application-stats strong {
    color: var(--phx-hub-primary);
    display: block;
    font-size: 22px;
    line-height: 1;
}

.phx-application-flow {
    border-top: 1px solid rgba(255, 153, 51, 0.24);
    display: grid;
    gap: 8px;
    grid-column: 1 / -1;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    padding-top: 14px;
}

.phx-application-flow span {
    background: rgba(0, 0, 0, 0.32);
    border: 1px solid rgba(255, 153, 51, 0.22);
    border-radius: 6px;
    color: var(--phx-hub-text);
    font-size: 12px;
    font-weight: 800;
    padding: 8px 10px;
    text-align: center;
    text-transform: uppercase;
}

.phx-application-layout {
    align-items: start;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(600px, 0.9fr) minmax(520px, 1.1fr);
    margin-top: 18px;
}

.phx-application-form-card,
.phx-application-list-card,
.phx-application-templates {
    border-color: rgba(255, 153, 51, 0.26);
}

.phx-application-context {
    align-items: center;
    background: rgba(255, 153, 51, 0.08);
    border: 1px solid rgba(255, 153, 51, 0.2);
    border-radius: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 16px;
    padding: 10px;
}

.phx-application-context span {
    color: var(--phx-hub-text);
    font-size: 13px;
}

.phx-application-context span strong {
    color: var(--phx-hub-yellow);
    display: block;
    font-size: 10px;
    text-transform: uppercase;
}

.phx-application-form .phx-form-row {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.phx-application-form-section-title {
    border-bottom: 1px solid rgba(255, 153, 51, 0.2);
    color: var(--phx-hub-yellow);
    font-size: 14px;
    margin: 16px 0 2px;
    padding-bottom: 6px;
}

.phx-application-form-section-title:first-of-type {
    margin-top: 0;
}

.phx-application-form textarea {
    min-height: 84px;
}

.phx-application-form textarea[name="application_answers"],
.phx-application-form textarea[name="interview_notes"],
.phx-application-form textarea[name="mentor_notes"] {
    min-height: 112px;
}

.phx-application-checklist {
    border: 1px solid rgba(255, 153, 51, 0.22);
    border-radius: 6px;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 14px 0;
    padding: 14px;
}

.phx-application-checklist legend {
    color: var(--phx-hub-yellow);
    font-weight: 800;
    padding: 0 8px;
    text-transform: uppercase;
}

.phx-application-checklist label {
    align-items: center;
    background: rgba(255, 153, 51, 0.07);
    border: 1px solid rgba(255, 153, 51, 0.16);
    border-radius: 5px;
    color: var(--phx-hub-text);
    display: flex;
    gap: 8px;
    margin: 0;
    min-height: 44px;
    padding: 9px 10px;
}

.phx-application-checklist input[type="checkbox"] {
    accent-color: var(--phx-hub-primary);
    flex: 0 0 auto;
    height: 18px;
    margin: 0;
    width: 18px;
}

.phx-application-member-action {
    border-top: 1px solid rgba(255, 153, 51, 0.22);
    margin-top: 16px;
    padding-top: 16px;
}

.phx-application-workflow-actions {
    align-items: center;
    background: rgba(255, 153, 51, 0.08);
    border: 1px solid rgba(255, 153, 51, 0.24);
    border-radius: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    margin-top: 14px;
    padding: 12px;
}

.phx-application-workflow-actions strong,
.phx-application-workflow-actions small {
    display: block;
}

.phx-application-workflow-actions small {
    color: var(--phx-hub-muted);
    font-size: 12px;
    margin-top: 2px;
}

.phx-application-workflow-actions form {
    margin: 0;
}

.phx-application-status-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0 16px;
}

.phx-application-status-tabs a {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: var(--phx-hub-text);
    font-size: 12px;
    font-weight: 800;
    padding: 6px 8px;
    text-decoration: none;
    text-transform: uppercase;
}

.phx-application-status-tabs a.is-active,
.phx-application-status-tabs a:hover {
    background: var(--phx-hub-primary);
    color: #000;
}

.phx-application-list {
    display: grid;
    gap: 10px;
    max-height: 720px;
    overflow: auto;
    padding-right: 4px;
    scrollbar-color: var(--phx-hub-primary) rgba(0, 0, 0, 0.26);
}

.phx-application-row {
    align-items: center;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 153, 51, 0.2);
    border-radius: 6px;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    padding: 12px;
}

.phx-application-row.is-active {
    border-color: var(--phx-hub-primary);
    box-shadow: inset 3px 0 0 var(--phx-hub-primary);
}

.phx-application-row strong,
.phx-application-row small,
.phx-application-row-meta span {
    display: block;
}

.phx-application-row-meta {
    color: var(--phx-hub-muted);
    font-size: 12px;
}

.phx-application-template-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.phx-application-template-grid article {
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 153, 51, 0.2);
    border-radius: 6px;
    padding: 12px;
}

.phx-application-templates {
    margin-top: 18px;
}

.phx-application-message-panel {
    border-top: 1px solid rgba(255, 153, 51, 0.22);
    margin-top: 18px;
    padding-top: 18px;
}

.phx-application-message-hint {
    color: var(--phx-hub-muted);
    font-size: 13px;
    font-weight: 700;
}

.phx-application-message-context {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.phx-application-message-context span {
    background: rgba(255, 153, 51, 0.1);
    border: 1px solid rgba(255, 153, 51, 0.2);
    border-radius: 5px;
    color: var(--phx-hub-text);
    min-width: 180px;
    padding: 8px 10px;
}

.phx-application-message-context strong {
    color: var(--phx-hub-yellow);
    display: block;
    font-size: 11px;
    text-transform: uppercase;
}

.phx-application-message-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    margin-top: 12px;
}

.phx-application-message-card {
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 153, 51, 0.2);
    border-radius: 6px;
    display: grid;
    gap: 10px;
    padding: 12px;
}

.phx-application-message-card strong,
.phx-application-message-card small {
    display: block;
}

.phx-application-message-card small {
    color: var(--phx-hub-muted);
    font-size: 12px;
}

.phx-application-message-card textarea {
    background: rgba(0, 0, 0, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 5px;
    color: var(--phx-hub-text);
    font: inherit;
    min-height: 170px;
    padding: 10px;
    resize: vertical;
    width: 100%;
}

/*
 * Voting frontend
 * Voting nutzt bewusst das zentrale Hub-CSS statt einer eigenen Frontend-CSS-Datei.
 */
.phx-voting-public {
    --phx-hub-text: #ffffff;
    --phx-hub-primary: #ff9933;
    --phx-hub-red: #cc3300;
    --phx-hub-yellow: #ffcc33;
    --phx-hub-bg: #333333;
    --phx-hub-black: #000000;
    --phx-hub-card: rgba(10, 12, 14, 0.92);
    --phx-hub-border: rgba(255, 153, 51, 0.45);
    --phx-hub-glow: rgba(255, 153, 51, 0.18);
    --phx-hub-muted: rgba(255, 255, 255, 0.72);
    --phx-hub-soft: rgba(255, 255, 255, 0.08);
    color: var(--phx-hub-text);
    background:
        linear-gradient(135deg, rgba(255, 153, 51, 0.08), transparent 32%),
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.08) 1px, transparent 0) 0 0 / 32px 32px,
        var(--phx-hub-bg);
    border: 1px solid var(--phx-hub-border);
    border-left: 5px solid var(--phx-hub-primary);
    border-radius: 6px;
    box-shadow: 0 0 24px rgba(255, 153, 51, 0.08), 0 16px 36px rgba(0, 0, 0, 0.22);
    font-family: Barlow, Arial, sans-serif;
    margin: 28px auto;
    max-width: 1120px;
    padding: 34px;
    width: min(100%, calc(100vw - 32px));
}

.phx-voting-public h2,
.phx-voting-public h3,
.phx-voting-public h4 {
    color: var(--phx-hub-primary);
    font-family: "Franklin Gothic Heavy Regular", "Franklin Gothic Heavy", "Franklin Gothic Demi", "Arial Black", Impact, sans-serif;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.1;
    margin-top: 0;
    text-transform: uppercase;
}

.phx-voting-public h2 {
    font-size: clamp(28px, 4vw, 42px);
    margin-bottom: 20px;
}

.phx-voting-public p,
.phx-voting-public li,
.phx-voting-public label,
.phx-voting-public strong,
.phx-voting-public summary {
    color: var(--phx-hub-text);
}

.phx-voting-public a {
    color: var(--phx-hub-primary);
}

.phx-voting-description {
    color: var(--phx-hub-muted);
    margin-bottom: 20px;
    max-width: 72ch;
}

.phx-public-group {
    border-top: 1px solid rgba(255, 153, 51, 0.22);
    margin-top: 18px;
    padding-top: 18px;
}

.phx-login-box {
    background: rgba(0, 0, 0, 0.32);
    border: 1px solid var(--phx-hub-border);
    border-radius: 6px;
    color: var(--phx-hub-text);
    margin: 24px 0;
    padding: 20px 24px;
}

.phx-login-box p {
    color: var(--phx-hub-text);
    margin: 0.5em 0;
}

.phx-login-success {
    border-left: 5px solid #22c55e;
}

.phx-warning-box {
    border-left: 5px solid var(--phx-hub-yellow);
}

.phx-button {
    background: var(--phx-hub-primary);
    border: 0;
    border-radius: 4px;
    color: var(--phx-hub-black) !important;
    cursor: pointer;
    display: inline-flex;
    font-weight: 900;
    justify-content: center;
    letter-spacing: 0;
    min-height: 38px;
    padding: 10px 18px;
    text-decoration: none;
    transition: background 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease;
}

.phx-button:hover,
.phx-button:focus {
    background: #ffad4a;
    box-shadow: 0 0 0 3px var(--phx-hub-glow);
    color: var(--phx-hub-black) !important;
    text-decoration: none;
    transform: translateY(-1px);
}

.phx-vote-form {
    margin-top: 22px;
}

.phx-voting-preview {
    color: var(--phx-hub-text);
}

.phx-eligible-group,
.phx-result-group {
    background: var(--phx-hub-card);
    border: 1px solid var(--phx-hub-border);
    border-radius: 6px;
    box-shadow: 0 0 0 1px rgba(255, 153, 51, 0.03), 0 12px 28px rgba(0, 0, 0, 0.2);
    margin-bottom: 18px;
    padding: 22px 24px;
}

.phx-vote-rules,
.phx-role-match,
.phx-form-note,
.phx-result-number,
.phx-ineligible-details,
.phx-voting-description,
.phx-login-box .description {
    color: var(--phx-hub-muted);
}

.phx-role-match {
    font-size: 0.95em;
}

.phx-vote-options {
    display: grid;
    gap: 12px;
    margin: 18px 0;
}

.phx-vote-option {
    align-items: center;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 153, 51, 0.22);
    border-radius: 6px;
    color: var(--phx-hub-text);
    display: flex;
    gap: 12px;
    padding: 13px 14px;
    transition: background 0.12s ease, border-color 0.12s ease;
}

.phx-vote-option:hover {
    background: rgba(255, 153, 51, 0.1);
    border-color: var(--phx-hub-primary);
}

.phx-vote-option input[type="checkbox"],
.phx-vote-option input[type="radio"] {
    accent-color: var(--phx-hub-primary);
}

.phx-vote-option-number {
    justify-content: space-between;
}

.phx-vote-option-number input {
    background: rgba(0, 0, 0, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 5px;
    color: var(--phx-hub-text);
    max-width: 90px;
    padding: 8px;
}

.phx-confirmation-candidate {
    background: rgba(255, 153, 51, 0.12);
    border-left: 4px solid var(--phx-hub-primary);
    color: var(--phx-hub-text);
    margin: 10px 0 14px;
    padding: 10px 12px;
}

.phx-validation-message {
    color: var(--phx-hub-muted);
    font-size: 0.95em;
    min-height: 1.4em;
}

.phx-validation-warning {
    color: #ffd28a;
    font-weight: 800;
}

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

.phx-results {
    margin-top: 28px;
}

.phx-results > h3 {
    font-size: clamp(24px, 3vw, 34px);
    margin-bottom: 12px;
}

.phx-result-list {
    display: grid;
    gap: 16px;
}

.phx-result-voters {
    background: rgba(255, 153, 51, 0.08);
    border: 1px solid rgba(255, 153, 51, 0.28);
    border-radius: 6px;
    margin-top: 14px;
    padding: 12px;
}

.phx-result-voters h5 {
    color: var(--phx-hub-primary);
    margin: 0 0 8px;
}

.phx-result-voters p,
.phx-result-voters-note {
    margin: 6px 0;
}

.phx-result-row {
    display: grid;
    gap: 8px;
}

.phx-result-label {
    color: var(--phx-hub-text);
    font-weight: 800;
}

.phx-result-bar-wrap {
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid var(--phx-hub-border);
    border-radius: 999px;
    height: 14px;
    overflow: hidden;
    width: 100%;
}

.phx-result-bar {
    background: linear-gradient(90deg, #d87d1e, #ffad4a);
    border-radius: 999px;
    height: 100%;
}

.phx-vote-form button[type="submit"] {
    border: 0;
}

.phx-ineligible-details {
    margin-top: 22px;
}

.phx-ineligible-details summary {
    color: var(--phx-hub-muted);
    cursor: pointer;
}

.phx-ineligible-details ul {
    color: var(--phx-hub-muted);
}

.phx-vote-intro {
    background: rgba(255, 153, 51, 0.08);
    border: 1px solid var(--phx-hub-border);
    border-left: 5px solid var(--phx-hub-primary);
    border-radius: 6px;
    margin: 24px 0;
    padding: 22px 24px;
}

.phx-vote-intro-description {
    color: var(--phx-hub-text);
    margin: 12px 0 18px;
}

.phx-vote-intro-rules {
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 153, 51, 0.22);
    border-radius: 6px;
    margin: 16px 0;
    padding: 14px 16px;
}

.phx-vote-intro-rules ul {
    margin-bottom: 0;
}

.phx-confirm-read-label {
    align-items: flex-start;
    display: flex;
    font-weight: 800;
    gap: 10px;
    margin: 18px 0;
}

.phx-confirm-read-label input {
    accent-color: var(--phx-hub-primary);
    margin-top: 4px;
}

.phx-show-vote-button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.phx-vote-form-hidden {
    display: none;
}

.phx-vote-intro-confirmed {
    opacity: 0.82;
}

@media (max-width: 1200px) {
    .phx-hub,
    .phx-hub-front {
        width: min(100%, calc(100vw - 26px));
    }

    .phx-hub-header,
    .phx-dashboard-head,
    .phx-manager-layout,
    .phx-moderation-grid,
    .phx-application-head,
    .phx-application-flow,
    .phx-application-layout,
    .phx-dashboard .phx-application-layout,
    .phx-member-admin-row,
    .phx-member-admin-filter,
    .phx-resolution-history-filter {
        grid-template-columns: 1fr;
    }

    .phx-event-manager .phx-manager-form,
    .phx-session-manager .phx-manager-form {
        position: static;
    }

    .phx-member-admin-actions {
        justify-content: flex-start;
    }

    .phx-member-rank-sync,
    .phx-member-rank-form button {
        grid-column: auto;
        grid-row: auto;
    }
}

@media (max-width: 720px) {
    .phx-hub,
    .phx-hub-front {
        border-width: 0;
        padding: 14px;
        width: 100%;
    }

    .phx-hub-tabs,
    .phx-hub-subtabs {
        flex-wrap: wrap;
        overflow-x: visible;
    }

    .phx-dashboard.phx-hub {
        padding: 12px;
    }

    .phx-dashboard .phx-hub-header,
    .phx-dashboard-context-bar.phx-hub-header {
        align-items: stretch;
        gap: 14px;
        grid-template-columns: 1fr;
        min-height: 0;
        padding: 16px;
    }

    .phx-dashboard .phx-hub-header h1 {
        font-size: clamp(28px, 12vw, 36px);
        line-height: 0.98;
        margin-bottom: 8px;
        overflow-wrap: anywhere;
    }

    .phx-dashboard .phx-hub-header p:not(.phx-kicker) {
        font-size: 14px;
        line-height: 1.45;
    }

    .phx-dashboard .phx-dashboard-badges,
    .phx-dashboard .phx-hub-role-grid {
        gap: 8px;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .phx-dashboard .phx-hub-role-card {
        grid-template-columns: 34px minmax(0, 1fr);
        min-height: 52px;
        min-width: 0;
        padding: 8px 10px;
        width: 100%;
    }

    .phx-applications {
        max-width: 100%;
        width: 100%;
    }

    .phx-applications .phx-front-card {
        padding: 14px;
    }

    .phx-application-head,
    .phx-application-flow,
    .phx-application-layout,
    .phx-dashboard .phx-application-layout,
    .phx-application-form-card,
    .phx-application-list-card,
    .phx-application-templates,
    .phx-application-message-panel,
    .phx-application-message-card {
        min-width: 0;
        width: 100%;
    }

    .phx-application-stats {
        min-width: 0;
        width: 100%;
    }

    .phx-application-flow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .phx-application-status-tabs a {
        flex: 1 1 calc(50% - 6px);
        text-align: center;
    }

    .phx-application-list {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

    .phx-application-template-grid,
    .phx-application-message-grid {
        grid-template-columns: 1fr;
    }

    .phx-application-message-context span {
        min-width: 0;
        width: 100%;
    }

    .phx-manager-selected-head,
    .phx-manager-event-row,
    .phx-application-form .phx-form-row,
    .phx-application-checklist,
    .phx-application-workflow-actions,
    .phx-application-row,
    .phx-moderation-speaker-head {
        align-items: stretch;
        display: grid;
        grid-template-columns: 1fr;
    }

    .phx-hub .phx-calendar-month,
    .phx-hub-front .phx-calendar-month {
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .phx-hub .phx-calendar-grid,
    .phx-hub-front .phx-calendar-grid {
        min-width: 620px;
    }

    .phx-voting-public {
        padding: 20px;
        width: min(100%, calc(100vw - 20px));
    }

    .phx-login-box,
    .phx-eligible-group,
    .phx-result-group,
    .phx-vote-intro {
        padding: 16px;
    }

    .phx-vote-option {
        align-items: flex-start;
    }
}

@media (max-width: 420px) {
    .phx-dashboard .phx-hub-header h1 {
        font-size: clamp(24px, 11vw, 31px);
    }

    .phx-application-flow {
        grid-template-columns: 1fr;
    }
}
