#player-hub {
    --ph-bg: #101010;
    --ph-surface: #17191c;
    --ph-surface-raised: #1c2025;
    --ph-surface-soft: #131a20;
    --ph-border: rgba(117, 171, 194, 0.2);
    --ph-border-strong: rgba(22, 132, 162, 0.58);
    --ph-text: #f3f5f7;
    --ph-muted: #a9b3bd;
    --ph-cyan: #1684a2;
    --ph-cyan-bright: #35b9da;
    --ph-cyan-soft: rgba(22, 132, 162, 0.14);
    --ph-green: #22c55e;
    --ph-green-soft: rgba(34, 197, 94, 0.13);
    --ph-amber: #f59e0b;
    --ph-amber-soft: rgba(245, 158, 11, 0.13);
    --ph-red: #ef4444;
    --ph-red-soft: rgba(239, 68, 68, 0.12);
    --ph-radius-sm: 8px;
    --ph-radius: 14px;
    --ph-radius-lg: 22px;
    --ph-shadow: 0 20px 55px rgba(0, 0, 0, 0.28);
    color: var(--ph-text);
    isolation: isolate;
    min-height: 40vh;
    padding: clamp(1rem, 2.2vw, 2.25rem) 0 clamp(3rem, 6vw, 6rem);
}

/* Phase two: compact, readable expedition surfaces. */
.ph-phase-hero{position:relative;overflow:hidden;min-height:240px;margin:0 0 1.5rem;padding:clamp(1.5rem,5vw,4rem);display:flex;align-items:flex-end;border:1px solid rgba(49,211,238,.28);border-radius:22px;background:#07141d center/cover no-repeat;box-shadow:0 24px 70px rgba(0,0,0,.28)}
.ph-phase-hero:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(3,12,18,.96) 0%,rgba(3,12,18,.78) 47%,rgba(3,12,18,.2) 100%),linear-gradient(0deg,rgba(3,12,18,.58),transparent 72%);pointer-events:none}
.ph-phase-hero>div{position:relative;z-index:1;max-width:760px}.ph-phase-hero h1{margin:.25rem 0 .6rem;font-size:clamp(2rem,5vw,4rem);line-height:1}.ph-phase-hero p{max-width:680px;margin:0;color:#c1d3dc;font-size:1.05rem}
.ph-phase-hero--quests{border-color:rgba(203,139,61,.45)}.ph-phase-hero--colony{border-color:rgba(34,197,94,.4)}.ph-phase-hero--events{border-color:rgba(148,98,255,.4)}
.ph-phase-hero--progress{background-image:url('../images/phase2-advancements.webp')}.ph-phase-hero--quests{background-image:url('../images/phase2-quests.webp')}.ph-phase-hero--colony{background-image:url('../images/phase2-colony.webp')}.ph-phase-hero--events{background-image:url('../images/phase2-events.webp')}
.ph-phase-number{font-size:clamp(2.4rem,7vw,5rem);font-weight:800;letter-spacing:-.05em}.ph-phase-number small{font-size:.35em;color:#91a8b4}.ph-progress{height:10px;margin-top:1rem;overflow:hidden;border-radius:99px;background:#152832}.ph-progress span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#13bdd6,#22c55e)}
@media(max-width:680px){.ph-phase-hero{min-height:200px;border-radius:16px}.ph-subnav{overflow-x:auto;white-space:nowrap}}

#player-hub *,
#player-hub *::before,
#player-hub *::after {
    box-sizing: border-box;
}

#player-hub [hidden] {
    display: none !important;
}

.ph-skip-link {
    background: #fff;
    border-radius: 0 0 8px 8px;
    color: #101010;
    font-weight: 800;
    left: 1rem;
    padding: 0.75rem 1rem;
    position: fixed;
    top: -5rem;
    z-index: 10000;
}

.ph-skip-link:focus {
    top: 0;
}

.ph-shell {
    margin: 0 auto;
    max-width: 1400px;
    padding: 0 clamp(1rem, 3vw, 2.5rem);
    width: 100%;
}

.ph-sr-only,
.ph-announcer {
    border: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

#player-hub a {
    color: var(--ph-cyan-bright);
}

#player-hub a:hover {
    color: #7cdef3;
}

#player-hub :focus-visible {
    outline: 3px solid #78ddf2;
    outline-offset: 3px;
}

.ph-hero {
    align-items: end;
    background-color: #10151a;
    border: 1px solid var(--ph-border);
    border-radius: var(--ph-radius-lg);
    box-shadow: var(--ph-shadow);
    display: grid;
    min-height: clamp(260px, 34vw, 440px);
    overflow: hidden;
    position: relative;
}

.ph-hero::before {
    background:
        linear-gradient(90deg, rgba(8, 11, 14, 0.97) 0%, rgba(8, 11, 14, 0.82) 42%, rgba(8, 11, 14, 0.2) 76%),
        linear-gradient(0deg, rgba(8, 11, 14, 0.94) 0%, transparent 60%),
        url('../images/player-hub-hero.webp') center/cover no-repeat;
    content: '';
    inset: 0;
    position: absolute;
}

.ph-hero::after {
    background: linear-gradient(90deg, transparent, rgba(53, 185, 218, 0.58), transparent);
    bottom: 0;
    content: '';
    height: 2px;
    left: 5%;
    position: absolute;
    width: 90%;
}

.ph-hero__content {
    max-width: 760px;
    padding: clamp(1.5rem, 4vw, 3.5rem);
    position: relative;
    z-index: 1;
}

.ph-eyebrow {
    color: var(--ph-cyan-bright);
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    margin-bottom: 0.65rem;
    text-transform: uppercase;
}

#player-hub h1,
#player-hub h2,
#player-hub h3,
#player-hub h4 {
    color: var(--ph-text);
    line-height: 1.15;
    margin-top: 0;
}

.ph-hero h1 {
    font-size: clamp(2rem, 6vw, 4.4rem);
    letter-spacing: -0.045em;
    margin-bottom: 0.8rem;
    text-shadow: 0 8px 30px rgba(0, 0, 0, 0.75);
}

.ph-hero p {
    color: #d1dae1;
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.65;
    margin: 0;
    max-width: 660px;
}

.ph-hero__actions,
.ph-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.35rem;
}

.ph-button,
#player-hub button.ph-button {
    align-items: center;
    appearance: none;
    background: var(--ph-cyan);
    border: 1px solid var(--ph-cyan);
    border-radius: var(--ph-radius-sm);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 800;
    gap: 0.55rem;
    justify-content: center;
    line-height: 1.2;
    min-height: 44px;
    padding: 0.72rem 1.05rem;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.ph-button:hover,
#player-hub button.ph-button:hover {
    background: #20a0c3;
    border-color: #20a0c3;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.ph-button--secondary,
#player-hub button.ph-button--secondary {
    background: rgba(11, 16, 20, 0.72);
    border-color: rgba(117, 171, 194, 0.45);
    color: var(--ph-text);
}

.ph-button--secondary:hover,
#player-hub button.ph-button--secondary:hover {
    background: rgba(22, 132, 162, 0.2);
    border-color: var(--ph-cyan-bright);
}

.ph-button--success,
#player-hub button.ph-button--success {
    background: #178c45;
    border-color: #22c55e;
}

.ph-button--danger,
#player-hub button.ph-button--danger {
    background: #a82b2b;
    border-color: #ef4444;
}

.ph-button[disabled],
#player-hub button.ph-button[disabled] {
    cursor: not-allowed;
    opacity: 0.58;
    transform: none;
}

.ph-button__icon {
    font-size: 1.05em;
    line-height: 1;
}

.ph-section {
    margin-top: clamp(1.5rem, 4vw, 3.25rem);
}

.ph-section-heading {
    align-items: end;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.ph-section-heading h2 {
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    margin-bottom: 0.25rem;
}

.ph-section-heading p,
.ph-muted {
    color: var(--ph-muted);
}

.ph-section-heading p {
    margin: 0;
}

.ph-grid {
    display: grid;
    gap: 1rem;
}

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

.ph-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ph-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ph-grid--sidebar {
    align-items: start;
    grid-template-columns: minmax(0, 1fr) minmax(250px, 0.34fr);
}

.ph-card {
    background: linear-gradient(145deg, rgba(29, 34, 39, 0.98), rgba(20, 23, 26, 0.98));
    border: 1px solid var(--ph-border);
    border-radius: var(--ph-radius);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.16);
    min-width: 0;
    overflow: hidden;
    padding: clamp(1rem, 2.2vw, 1.5rem);
    position: relative;
}

.ph-card--interactive {
    transition: border-color 160ms ease, transform 160ms ease;
}

.ph-card--interactive:hover {
    border-color: var(--ph-border-strong);
    transform: translateY(-2px);
}

.ph-card--cyan {
    background: linear-gradient(145deg, rgba(17, 42, 51, 0.98), rgba(18, 25, 29, 0.98));
    border-color: rgba(22, 132, 162, 0.45);
}

.ph-card--success {
    background: linear-gradient(145deg, rgba(20, 52, 35, 0.98), rgba(18, 25, 22, 0.98));
    border-color: rgba(34, 197, 94, 0.42);
}

.ph-card__header {
    align-items: center;
    display: flex;
    gap: 0.8rem;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.ph-card__header h2,
.ph-card__header h3 {
    margin-bottom: 0;
}

.ph-card__title {
    align-items: center;
    display: flex;
    gap: 0.7rem;
}

.ph-card__icon {
    align-items: center;
    background: var(--ph-cyan-soft);
    border: 1px solid rgba(53, 185, 218, 0.24);
    border-radius: 10px;
    color: var(--ph-cyan-bright);
    display: inline-flex;
    flex: 0 0 42px;
    font-size: 1.25rem;
    height: 42px;
    justify-content: center;
}

.ph-card__media {
    aspect-ratio: 16 / 8;
    border-radius: 10px;
    display: block;
    margin: -0.35rem -0.35rem 1.2rem;
    object-fit: cover;
    width: calc(100% + 0.7rem);
}

.ph-card p:last-child {
    margin-bottom: 0;
}

.ph-status {
    align-items: center;
    background: rgba(160, 169, 180, 0.12);
    border: 1px solid rgba(160, 169, 180, 0.3);
    border-radius: 999px;
    color: #d3dae0;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 800;
    gap: 0.4rem;
    line-height: 1.1;
    min-height: 28px;
    padding: 0.38rem 0.7rem;
    white-space: nowrap;
}

.ph-status::before {
    background: currentColor;
    border-radius: 50%;
    content: '';
    height: 7px;
    width: 7px;
}

.ph-status--online,
.ph-status--complete,
.ph-status--resolved,
.ph-status--supported {
    background: var(--ph-green-soft);
    border-color: rgba(34, 197, 94, 0.35);
    color: #77e79f;
}

.ph-status--warning,
.ph-status--pending,
.ph-status--maintenance,
.ph-status--retired,
.ph-status--awaiting_staff,
.ph-status--awaiting_player {
    background: var(--ph-amber-soft);
    border-color: rgba(245, 158, 11, 0.38);
    color: #ffd078;
}

.ph-status--offline,
.ph-status--error,
.ph-status--critical,
.ph-status--closed {
    background: var(--ph-red-soft);
    border-color: rgba(239, 68, 68, 0.35);
    color: #ff8a8a;
}

.ph-status--info,
.ph-status--current,
.ph-status--open {
    background: var(--ph-cyan-soft);
    border-color: rgba(53, 185, 218, 0.34);
    color: #71daf1;
}

.ph-alert {
    align-items: flex-start;
    background: var(--ph-cyan-soft);
    border: 1px solid rgba(53, 185, 218, 0.32);
    border-left: 4px solid var(--ph-cyan-bright);
    border-radius: var(--ph-radius-sm);
    color: #d9edf2;
    display: flex;
    gap: 0.85rem;
    margin-bottom: 1rem;
    padding: 1rem;
}

.ph-alert--success {
    background: var(--ph-green-soft);
    border-color: rgba(34, 197, 94, 0.32);
    border-left-color: var(--ph-green);
}

.ph-alert--warning {
    background: var(--ph-amber-soft);
    border-color: rgba(245, 158, 11, 0.34);
    border-left-color: var(--ph-amber);
}

.ph-alert--error {
    background: var(--ph-red-soft);
    border-color: rgba(239, 68, 68, 0.34);
    border-left-color: var(--ph-red);
}

.ph-alert__body {
    flex: 1;
}

.ph-alert__body strong {
    color: var(--ph-text);
    display: block;
    margin-bottom: 0.2rem;
}

.ph-alert__dismiss {
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    font-size: 1.25rem;
    min-height: 44px;
    min-width: 44px;
}

.ph-command-strip {
    align-items: center;
    background: linear-gradient(100deg, rgba(15, 38, 47, 0.98), rgba(17, 21, 25, 0.98));
    border: 1px solid var(--ph-border-strong);
    border-radius: var(--ph-radius);
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-top: -1rem;
    padding: 1rem 1.25rem;
    position: relative;
    z-index: 2;
}

.ph-server-address {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.ph-server-address code {
    background: #0d1114;
    border: 1px solid rgba(117, 171, 194, 0.28);
    border-radius: 7px;
    color: #fff;
    font-family: Consolas, Monaco, monospace;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    padding: 0.56rem 0.7rem;
    word-break: break-all;
}

.ph-metric {
    background: rgba(10, 14, 17, 0.42);
    border: 1px solid rgba(117, 171, 194, 0.15);
    border-radius: 11px;
    min-height: 112px;
    padding: 1rem;
}

.ph-metric__label {
    color: var(--ph-muted);
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
}

.ph-metric__value {
    color: var(--ph-text);
    display: block;
    font-size: clamp(1.3rem, 3vw, 2rem);
    font-weight: 900;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.ph-metric__detail {
    color: var(--ph-muted);
    display: block;
    font-size: 0.8rem;
    margin-top: 0.38rem;
}

.ph-progress {
    background: #0d1114;
    border-radius: 999px;
    height: 9px;
    overflow: hidden;
    width: 100%;
}

.ph-progress__bar {
    background: linear-gradient(90deg, var(--ph-cyan), var(--ph-cyan-bright));
    border-radius: inherit;
    display: block;
    height: 100%;
    max-width: 100%;
    min-width: 0;
}

.ph-native-progress {
    appearance: none;
    background: #0d1114;
    border: 0;
    border-radius: 999px;
    display: block;
    height: 9px;
    margin-top: 0.55rem;
    overflow: hidden;
    width: 100%;
}

.ph-native-progress::-webkit-progress-bar {
    background: #0d1114;
}

.ph-native-progress::-webkit-progress-value {
    background: linear-gradient(90deg, var(--ph-cyan), var(--ph-cyan-bright));
    border-radius: 999px;
}

.ph-native-progress::-moz-progress-bar {
    background: linear-gradient(90deg, var(--ph-cyan), var(--ph-cyan-bright));
    border-radius: 999px;
}

.ph-checklist,
.ph-list,
.ph-link-list,
.ph-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ph-checklist__item,
.ph-list__item,
.ph-link-list__item {
    align-items: flex-start;
    border-top: 1px solid rgba(117, 171, 194, 0.13);
    display: flex;
    gap: 0.85rem;
    padding: 0.95rem 0;
}

.ph-checklist__item:first-child,
.ph-list__item:first-child,
.ph-link-list__item:first-child {
    border-top: 0;
    padding-top: 0;
}

.ph-checklist__mark {
    align-items: center;
    background: rgba(160, 169, 180, 0.12);
    border: 1px solid rgba(160, 169, 180, 0.3);
    border-radius: 50%;
    color: #c7d0d8;
    display: inline-flex;
    flex: 0 0 30px;
    font-weight: 900;
    height: 30px;
    justify-content: center;
}

.ph-checklist__item--complete .ph-checklist__mark {
    background: var(--ph-green-soft);
    border-color: rgba(34, 197, 94, 0.45);
    color: #77e79f;
}

.ph-checklist__item--warning .ph-checklist__mark {
    background: var(--ph-amber-soft);
    border-color: rgba(245, 158, 11, 0.45);
    color: #ffd078;
}

.ph-checklist__body {
    flex: 1;
    min-width: 0;
}

.ph-checklist__body strong,
.ph-list__body strong {
    color: var(--ph-text);
    display: block;
}

.ph-checklist__body small,
.ph-list__body small {
    color: var(--ph-muted);
    display: block;
    line-height: 1.5;
    margin-top: 0.2rem;
}

.ph-checklist__action {
    align-self: center;
    flex: 0 0 auto;
    font-size: 0.86rem;
    font-weight: 800;
}

.ph-user-card {
    align-items: center;
    display: flex;
    gap: 1rem;
}

.ph-avatar {
    background: #0c1013;
    border: 2px solid rgba(53, 185, 218, 0.42);
    border-radius: 12px;
    flex: 0 0 72px;
    height: 72px;
    image-rendering: pixelated;
    object-fit: cover;
    width: 72px;
}

.ph-avatar--large {
    border-radius: 18px;
    flex-basis: 112px;
    height: 112px;
    width: 112px;
}

.ph-user-card__body {
    min-width: 0;
}

.ph-user-card__body h1,
.ph-user-card__body h2 {
    margin-bottom: 0.35rem;
    overflow-wrap: anywhere;
}

.ph-directory-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 310px;
}

.ph-directory-card__identity {
    align-items: center;
    color: var(--ph-text) !important;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    text-align: center;
    text-decoration: none;
}

.ph-directory-card__identity:hover {
    color: var(--ph-cyan-bright) !important;
    text-decoration: none;
}

.ph-directory-card__name {
    font-size: 1.2rem;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.ph-directory-card .ph-badges {
    justify-content: center;
}

.ph-directory-card__details {
    margin-top: auto;
}

.ph-pagination {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 1.25rem;
}

.ph-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.ph-badge {
    background: rgba(117, 171, 194, 0.1);
    border: 1px solid rgba(117, 171, 194, 0.25);
    border-radius: 999px;
    color: #d9e5eb;
    display: inline-flex;
    font-size: 0.76rem;
    font-weight: 800;
    padding: 0.33rem 0.65rem;
}

.ph-subnav {
    align-items: center;
    background: rgba(18, 22, 25, 0.96);
    border: 1px solid var(--ph-border);
    border-radius: 12px;
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.2rem;
    overflow-x: auto;
    padding: 0.38rem;
    scrollbar-width: thin;
}

.ph-subnav a {
    border-radius: 8px;
    color: #c2ccd3 !important;
    flex: 0 0 auto;
    font-weight: 750;
    min-height: 42px;
    padding: 0.66rem 0.85rem;
    text-decoration: none;
}

.ph-subnav a:hover,
.ph-subnav a[aria-current='page'] {
    background: var(--ph-cyan-soft);
    color: #fff !important;
}

.ph-page-heading {
    align-items: end;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding: clamp(0.5rem, 2vw, 1.25rem) 0;
}

.ph-page-heading h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin-bottom: 0.35rem;
}

.ph-page-heading p {
    color: var(--ph-muted);
    margin: 0;
    max-width: 760px;
}

.ph-filter {
    background: #111519;
    border: 1px solid var(--ph-border);
    border-radius: 10px;
    color: var(--ph-text);
    display: flex;
    gap: 0.65rem;
    margin-bottom: 1rem;
    padding: 0.55rem 0.75rem;
}

.ph-filter:focus-within {
    border-color: var(--ph-cyan-bright);
}

.ph-filter input {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: var(--ph-text) !important;
    flex: 1;
    font: inherit;
    min-height: 34px;
    min-width: 0;
    outline: 0 !important;
    padding: 0 !important;
}

.ph-filter input::placeholder {
    color: #85919c;
}

.ph-release {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) auto;
}

.ph-release__version {
    color: var(--ph-cyan-bright);
    font-family: Consolas, Monaco, monospace;
    font-size: 1.05rem;
    font-weight: 900;
}

.ph-meta {
    color: var(--ph-muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.82rem;
    gap: 0.45rem 1rem;
    margin: 0.6rem 0;
}

.ph-meta span {
    align-items: center;
    display: inline-flex;
    gap: 0.36rem;
}

.ph-richtext {
    color: #d3d9de;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.ph-richtext h2,
.ph-richtext h3 {
    margin-top: 1.6em;
}

.ph-richtext img {
    border-radius: 10px;
    height: auto;
    max-width: 100%;
}

.ph-richtext pre,
.ph-richtext code {
    background: #0c1013;
    border-radius: 5px;
    color: #d9f2f8;
    font-family: Consolas, Monaco, monospace;
}

.ph-richtext pre {
    overflow-x: auto;
    padding: 1rem;
}

.ph-richtext code {
    padding: 0.15em 0.35em;
}

.ph-richtext pre code {
    padding: 0;
}

.ph-timeline {
    margin-left: 0.55rem;
}

.ph-timeline__item {
    border-left: 2px solid rgba(53, 185, 218, 0.28);
    padding: 0 0 1.5rem 1.35rem;
    position: relative;
}

.ph-timeline__item::before {
    background: var(--ph-cyan-bright);
    border: 4px solid #172027;
    border-radius: 50%;
    content: '';
    height: 14px;
    left: -8px;
    position: absolute;
    top: 0.25rem;
    width: 14px;
}

.ph-timeline__item:last-child {
    padding-bottom: 0;
}

.ph-empty {
    align-items: center;
    border: 1px dashed rgba(117, 171, 194, 0.35);
    border-radius: var(--ph-radius);
    color: var(--ph-muted);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 220px;
    padding: 2rem;
    text-align: center;
}

.ph-empty__icon {
    align-items: center;
    background: var(--ph-cyan-soft);
    border-radius: 50%;
    color: var(--ph-cyan-bright);
    display: inline-flex;
    font-size: 1.55rem;
    height: 58px;
    justify-content: center;
    margin-bottom: 1rem;
    width: 58px;
}

.ph-empty h2,
.ph-empty h3 {
    margin-bottom: 0.45rem;
}

.ph-empty p {
    margin: 0;
    max-width: 560px;
}

.ph-form {
    display: grid;
    gap: 1rem;
}

.ph-field {
    display: grid;
    gap: 0.42rem;
}

.ph-field label,
.ph-field legend {
    color: var(--ph-text);
    font-weight: 800;
}

.ph-required {
    color: #ff9696;
}

.ph-field input[type='text'],
.ph-field input[type='email'],
.ph-field input[type='search'],
.ph-field select,
.ph-field textarea {
    background: #0e1215 !important;
    border: 1px solid rgba(117, 171, 194, 0.28) !important;
    border-radius: 9px !important;
    box-shadow: none !important;
    color: var(--ph-text) !important;
    font: inherit;
    min-height: 46px;
    padding: 0.72rem 0.8rem !important;
    width: 100%;
}

.ph-field textarea {
    min-height: 150px;
    resize: vertical;
}

.ph-field input:focus,
.ph-field select:focus,
.ph-field textarea:focus {
    border-color: var(--ph-cyan-bright) !important;
    outline: 2px solid rgba(53, 185, 218, 0.22) !important;
}

.ph-field-help {
    color: var(--ph-muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

.ph-field-help--error,
.ph-error-text {
    color: #ff9999;
}

.ph-fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

.ph-choice {
    align-items: flex-start;
    background: rgba(10, 14, 17, 0.3);
    border: 1px solid rgba(117, 171, 194, 0.16);
    border-radius: 9px;
    cursor: pointer;
    display: flex;
    gap: 0.75rem;
    padding: 0.85rem;
}

.ph-choice input {
    flex: 0 0 auto;
    height: 20px;
    margin-top: 0.12rem;
    width: 20px;
}

.ph-choice__body strong,
.ph-choice__body small {
    display: block;
}

.ph-choice__body small {
    color: var(--ph-muted);
    line-height: 1.45;
    margin-top: 0.15rem;
}

.ph-table-wrap {
    border: 1px solid var(--ph-border);
    border-radius: var(--ph-radius);
    overflow-x: auto;
}

.ph-table {
    border-collapse: collapse;
    min-width: 680px;
    width: 100%;
}

.ph-table th,
.ph-table td {
    border-bottom: 1px solid rgba(117, 171, 194, 0.15);
    padding: 0.9rem 1rem;
    text-align: left;
    vertical-align: middle;
}

.ph-table th {
    background: #161b20;
    color: #cbd4db;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ph-table tr:last-child td {
    border-bottom: 0;
}

.ph-table a {
    font-weight: 800;
}

.ph-ticket-message {
    border-left: 3px solid rgba(117, 171, 194, 0.35);
    display: grid;
    gap: 0.7rem;
    padding: 0.5rem 0 1.5rem 1rem;
}

.ph-ticket-message--staff {
    border-left-color: var(--ph-cyan-bright);
}

.ph-ticket-message__header {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.ph-ticket-message__header time {
    color: var(--ph-muted);
    font-size: 0.8rem;
}

.ph-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ph-attachment {
    background: #11161a;
    border: 1px solid rgba(117, 171, 194, 0.22);
    border-radius: 8px;
    color: #dce7ec !important;
    display: inline-flex;
    font-size: 0.82rem;
    gap: 0.4rem;
    padding: 0.52rem 0.7rem;
    text-decoration: none;
}

.ph-detail-list {
    display: grid;
    gap: 0;
    margin: 0;
}

.ph-detail-list > div {
    border-top: 1px solid rgba(117, 171, 194, 0.14);
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(110px, 0.35fr) minmax(0, 1fr);
    padding: 0.85rem 0;
}

.ph-detail-list > div:first-child {
    border-top: 0;
    padding-top: 0;
}

.ph-detail-list dt {
    color: var(--ph-muted);
    font-weight: 700;
}

.ph-detail-list dd {
    color: var(--ph-text);
    margin: 0;
    overflow-wrap: anywhere;
}

.ph-issue {
    border-left: 4px solid var(--ph-cyan);
}

.ph-issue--critical {
    border-left-color: var(--ph-red);
}

.ph-issue--high,
.ph-issue--warning {
    border-left-color: var(--ph-amber);
}

.ph-guide-card {
    display: flex;
    flex-direction: column;
    min-height: 230px;
}

.ph-guide-card__category {
    color: var(--ph-cyan-bright);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.ph-guide-card h2,
.ph-guide-card h3 {
    margin: 0.65rem 0 0.5rem;
}

.ph-guide-card p {
    color: var(--ph-muted);
    flex: 1;
    line-height: 1.55;
}

.ph-guide-card__link {
    font-weight: 800;
    text-decoration: none;
}

.ph-install-step {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: auto minmax(0, 1fr);
}

.ph-install-step__number {
    align-items: center;
    background: var(--ph-cyan-soft);
    border: 1px solid rgba(53, 185, 218, 0.32);
    border-radius: 50%;
    color: var(--ph-cyan-bright);
    display: inline-flex;
    font-weight: 900;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.ph-access-mode {
    align-items: flex-start;
    display: flex;
    gap: 0.85rem;
}

.ph-access-mode__icon {
    align-items: center;
    background: var(--ph-green-soft);
    border: 1px solid rgba(34, 197, 94, 0.35);
    border-radius: 12px;
    color: #77e79f;
    display: inline-flex;
    flex: 0 0 48px;
    font-size: 1.4rem;
    height: 48px;
    justify-content: center;
}

.ph-access-mode--restricted .ph-access-mode__icon {
    background: var(--ph-amber-soft);
    border-color: rgba(245, 158, 11, 0.35);
    color: #ffd078;
}

.ph-footer-note {
    color: #87939d;
    font-size: 0.8rem;
    margin-top: 1rem;
    text-align: center;
}

.ph-spinner {
    animation: ph-spin 900ms linear infinite;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border-top-color: #fff;
    display: inline-block;
    height: 1em;
    width: 1em;
}

.ph-is-spinning .ph-button__icon {
    animation: ph-spin 900ms linear infinite;
}

@keyframes ph-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 1100px) {
    .ph-grid--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ph-grid--3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .ph-grid--2,
    .ph-grid--3,
    .ph-grid--sidebar {
        grid-template-columns: 1fr;
    }

    .ph-command-strip,
    .ph-release {
        align-items: start;
        grid-template-columns: 1fr;
    }

    .ph-command-strip .ph-actions,
    .ph-release .ph-actions {
        margin-top: 0;
    }

    .ph-page-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 575px) {
    #player-hub {
        padding-top: 0.75rem;
    }

    .ph-shell {
        padding: 0 0.8rem;
    }

    .ph-hero {
        border-radius: 14px;
        min-height: 390px;
    }

    .ph-hero::before {
        background:
            linear-gradient(0deg, rgba(8, 11, 14, 0.98) 0%, rgba(8, 11, 14, 0.76) 68%, rgba(8, 11, 14, 0.25) 100%),
            url('../images/player-hub-hero.webp') 65% center/cover no-repeat;
    }

    .ph-hero__content {
        padding: 1.3rem;
    }

    .ph-hero__actions,
    .ph-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .ph-button,
    #player-hub button.ph-button {
        width: 100%;
    }

    .ph-command-strip {
        margin-top: 0.8rem;
    }

    .ph-grid--4 {
        grid-template-columns: 1fr;
    }

    .ph-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .ph-avatar--large {
        flex-basis: 84px;
        height: 84px;
        width: 84px;
    }

    .ph-detail-list > div {
        gap: 0.25rem;
        grid-template-columns: 1fr;
    }

    .ph-checklist__item {
        flex-wrap: wrap;
    }

    .ph-checklist__action {
        margin-left: 45px;
    }

    .ph-table {
        min-width: 620px;
    }

    .ph-pagination {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    #player-hub *,
    #player-hub *::before,
    #player-hub *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

@media print {
    .ph-skip-link,
    .ph-subnav,
    .ph-actions,
    .ph-hero__actions,
    [data-ph-dismiss],
    [data-ph-refresh] {
        display: none !important;
    }

    #player-hub,
    .ph-card,
    .ph-hero {
        background: #fff !important;
        box-shadow: none !important;
        color: #111 !important;
    }

    #player-hub h1,
    #player-hub h2,
    #player-hub h3,
    #player-hub p,
    #player-hub span,
    #player-hub dd,
    #player-hub dt {
        color: #111 !important;
    }
}
