:root {
    color-scheme: dark;
    --pc-bg: #0d1825;
    --pc-bg-deep: #07101a;
    --pc-surface: rgba(20, 32, 46, 0.92);
    --pc-surface-strong: #19283a;
    --pc-surface-soft: rgba(45, 61, 78, 0.55);
    --pc-border: rgba(201, 156, 68, 0.24);
    --pc-border-strong: rgba(201, 156, 68, 0.44);
    --pc-text: #fff8e7;
    --pc-text-muted: #bac5d3;
    --pc-accent: #c99c44;
    --pc-accent-hover: #e3bd6b;
    --pc-accent-text: #101923;
    --pc-vocation-accent: #c99c44;
    --pc-info: #60a5fa;
    --pc-success: #4ade80;
    --pc-danger: #f87171;
    --pc-radius-sm: 0.6rem;
    --pc-radius: 0.9rem;
    --pc-radius-lg: 1.25rem;
    --pc-control-height: 2.75rem;
    --pc-shadow: 0 18px 50px rgba(2, 6, 23, 0.28);
    --pc-focus: 0 0 0 3px rgba(212, 175, 55, 0.48);
    --pc-content: 80rem;
    --pc-page-gutter: clamp(1rem, 2.4vw, 1.5rem);
    --pc-section-gap: clamp(1rem, 2vw, 1.5rem);
    --pc-space-1: 0.375rem;
    --pc-space-2: 0.625rem;
    --pc-space-3: 0.875rem;
    --pc-space-4: 1rem;
    --pc-space-5: 1.25rem;
    --pc-space-6: 1.5rem;
}

html {
    background: var(--pc-bg-deep);
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 15% -15%, rgba(50, 84, 112, 0.34), transparent 34rem),
        radial-gradient(circle at 88% 8%, rgba(120, 92, 42, 0.14), transparent 30rem),
        var(--pc-bg);
    color: var(--pc-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

.font-cinzel {
    font-family: inherit !important;
    letter-spacing: -0.02em;
}

h1,
h2,
h3 {
    line-height: 1.2;
    text-wrap: balance;
}

::selection {
    background: rgba(251, 191, 36, 0.3);
    color: #fff;
}

a,
button,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

button,
[role="button"],
input[type="button"],
input[type="submit"],
input[type="reset"],
input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
select {
    min-height: var(--pc-control-height);
}

button,
[role="button"],
input[type="button"],
input[type="submit"],
input[type="reset"] {
    touch-action: manipulation;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled,
[aria-disabled="true"] {
    cursor: not-allowed !important;
    opacity: 0.58;
    transform: none !important;
}

:focus {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--pc-info);
    outline-offset: 3px;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
    box-shadow: var(--pc-focus);
}

input,
select,
textarea {
    max-width: 100%;
    min-width: 0;
    border-color: var(--pc-border-strong) !important;
    border-radius: var(--pc-radius-sm) !important;
}

input::placeholder,
textarea::placeholder {
    color: #7f8ca1 !important;
    opacity: 1;
}

label {
    color: #dbe4f0;
}

main,
section,
article,
form,
fieldset,
table,
details,
[class*="grid"],
[class*="flex"] {
    min-width: 0;
}

h1,
h2,
h3,
h4,
p,
li,
td,
th {
    overflow-wrap: anywhere;
}

button svg,
a svg {
    flex: 0 0 auto;
}

.pc-skip-link {
    position: fixed;
    z-index: 10000;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.65rem 0.9rem;
    border-radius: var(--pc-radius-sm);
    background: var(--pc-accent);
    color: var(--pc-accent-text);
    font-weight: 700;
    transform: translateY(-160%);
    transition: transform 120ms ease;
}

.pc-skip-link:focus {
    transform: translateY(0);
}

.pc-container {
    width: min(calc(100% - 2rem), var(--pc-content));
    margin-inline: auto;
}

.pc-page {
    width: min(100%, var(--pc-content));
    margin-inline: auto;
    padding: clamp(1.25rem, 3vw, 2rem) var(--pc-page-gutter);
}

.pc-page--narrow {
    max-width: 64rem;
}

.pc-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--pc-space-4);
}

.pc-page-header__copy {
    min-width: 0;
}

.pc-page-title {
    margin: 0;
    color: var(--pc-text);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.025em;
}

.pc-page-description {
    max-width: 46rem;
    margin: 0.5rem 0 0;
    color: var(--pc-text-muted);
    font-size: 0.9rem;
}

.pc-section-stack {
    display: grid;
    gap: var(--pc-section-gap);
}

.pc-toolbar {
    display: flex;
    align-items: center;
    gap: var(--pc-space-2);
}

.pc-toolbar--wrap {
    flex-wrap: wrap;
}

.pc-toolbar__grow {
    min-width: 12rem;
    flex: 1 1 18rem;
}

.pc-action-cluster {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--pc-space-2);
}

.pc-card {
    border: 1px solid var(--pc-border);
    border-radius: var(--pc-radius-lg);
    background: var(--pc-surface);
    box-shadow: var(--pc-shadow);
}

.pc-panel {
    border: 1px solid var(--pc-border);
    border-radius: var(--pc-radius-lg);
    background: var(--pc-surface);
}

.pc-panel__body {
    padding: clamp(1rem, 2vw, 1.5rem);
}

.pc-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--pc-space-4);
}

.pc-stat {
    min-width: 0;
    padding: clamp(1rem, 2vw, 1.35rem);
    border: 1px solid var(--pc-border);
    border-radius: var(--pc-radius);
    background: rgba(30, 41, 59, 0.55);
}

.pc-stat__label {
    color: var(--pc-text-muted);
    font-size: 0.8rem;
    font-weight: 600;
}

.pc-stat__value {
    margin-top: 0.25rem;
    color: var(--pc-text);
    font-size: clamp(1.45rem, 3vw, 2rem);
    font-weight: 800;
    line-height: 1;
}

.pc-btn {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border: 1px solid transparent;
    border-radius: var(--pc-radius-sm);
    padding: 0.65rem 1rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.pc-btn-sm {
    min-height: 2.75rem;
    padding: 0.5rem 0.8rem;
    font-size: 0.82rem;
}

.pc-icon-btn {
    width: 2.75rem !important;
    min-width: 2.75rem !important;
    height: 2.75rem !important;
    min-height: 2.75rem !important;
    padding: 0 !important;
    border-radius: 0.55rem !important;
}

.pc-text-action {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--pc-radius-sm);
    color: #facc15;
    font-weight: 700;
}

.pc-text-action:hover {
    background: rgba(251, 191, 36, 0.08);
    color: #fde68a;
}

.pc-btn-primary {
    background: var(--pc-accent);
    color: var(--pc-accent-text);
}

.pc-btn-primary:hover:not(:disabled) {
    background: var(--pc-accent-hover);
}

.pc-btn-secondary {
    border-color: var(--pc-border-strong);
    background: rgba(15, 23, 42, 0.35);
    color: var(--pc-text);
}

.pc-btn-secondary:hover:not(:disabled) {
    border-color: rgba(96, 165, 250, 0.65);
    background: rgba(51, 65, 85, 0.72);
}

.pc-btn-danger {
    border-color: rgba(248, 113, 113, 0.34);
    background: rgba(127, 29, 29, 0.35);
    color: #fecaca;
}

.pc-btn-danger:hover:not(:disabled) {
    background: rgba(153, 27, 27, 0.55);
}

.pc-btn[data-pending="true"]::before,
button[data-pending="true"]::before,
input[type="submit"][data-pending="true"]::before {
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 999px;
    content: "";
    animation: pc-spin 650ms linear infinite;
}

.pc-empty {
    display: grid;
    place-items: center;
    min-height: 10rem;
    padding: 2rem;
    border: 1px dashed var(--pc-border-strong);
    border-radius: var(--pc-radius);
    background: rgba(15, 23, 42, 0.25);
    color: var(--pc-text-muted);
    text-align: center;
}

.pc-empty--compact {
    min-height: 5.5rem;
    padding: 1.25rem;
}

.pc-state-frame {
    min-height: 12rem;
}

.pc-field {
    display: grid;
    min-width: 0;
    gap: 0.4rem;
}

.pc-field__label {
    color: #dbe4f0;
    font-size: 0.82rem;
    font-weight: 650;
}

.pc-field__help {
    margin: 0;
    color: var(--pc-text-muted);
    font-size: 0.75rem;
    line-height: 1.45;
}

.pc-control {
    width: 100%;
    min-height: var(--pc-control-height);
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--pc-border-strong);
    border-radius: var(--pc-radius-sm);
    background: rgba(15, 23, 42, 0.58);
    color: var(--pc-text);
}

.pc-control--with-leading-icon {
    padding-left: 2.5rem;
}

.pc-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--pc-space-4);
}

.pc-form-grid__wide {
    grid-column: 1 / -1;
}

.pc-skeleton {
    position: relative;
    overflow: hidden;
    border-radius: var(--pc-radius-sm);
    background: rgba(100, 116, 139, 0.18);
}

.pc-skeleton::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    content: "";
    transform: translateX(-100%);
    animation: pc-shimmer 1.35s infinite;
}

.pc-action-status {
    position: fixed;
    z-index: 80;
    right: 1rem;
    bottom: 1rem;
    display: flex;
    max-width: min(26rem, calc(100vw - 2rem));
    align-items: center;
    gap: 0.7rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--pc-border-strong);
    border-radius: var(--pc-radius);
    background: rgba(15, 23, 42, 0.96);
    box-shadow: var(--pc-shadow);
    color: #e2e8f0;
    font-size: 0.9rem;
    pointer-events: none;
}

.pc-action-status::before {
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
    border: 2px solid var(--pc-accent);
    border-right-color: transparent;
    border-radius: 999px;
    content: "";
    animation: pc-spin 650ms linear infinite;
}

.pc-toast-region {
    position: fixed;
    z-index: 10001;
    right: 1rem;
    bottom: 1rem;
    display: grid;
    width: min(24rem, calc(100vw - 2rem));
    gap: 0.65rem;
    pointer-events: none;
}

.pc-toast {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: start;
    gap: 0.7rem;
    padding: 0.85rem 0.9rem;
    border: 1px solid var(--pc-border-strong);
    border-left: 3px solid var(--pc-info);
    border-radius: var(--pc-radius);
    background: rgba(15, 23, 42, 0.98);
    box-shadow: var(--pc-shadow);
    color: var(--pc-text);
    font-size: 0.92rem;
    line-height: 1.45;
    pointer-events: auto;
    animation: pc-toast-in 150ms ease-out;
}

.pc-toast[data-type="success"] {
    border-left-color: var(--pc-success);
}

.pc-toast[data-type="error"] {
    border-left-color: var(--pc-danger);
}

.pc-toast__mark {
    color: var(--pc-info);
    font-weight: 800;
}

.pc-toast[data-type="success"] .pc-toast__mark {
    color: var(--pc-success);
}

.pc-toast[data-type="error"] .pc-toast__mark {
    color: var(--pc-danger);
}

.pc-toast__close {
    min-width: 2rem;
    min-height: 2rem;
    margin: -0.4rem -0.45rem -0.4rem 0;
    border-radius: 0.45rem;
    color: #94a3b8;
    line-height: 1;
}

.pc-dialog {
    width: min(30rem, calc(100vw - 2rem));
    max-height: min(44rem, calc(100dvh - 2rem));
    overflow-y: auto;
    padding: 0;
    border: 1px solid var(--pc-border-strong);
    border-radius: var(--pc-radius-lg);
    background: #172033;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.58);
    color: var(--pc-text);
}

.pc-overlay-dialog {
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.pc-overlay-panel {
    max-height: calc(100dvh - 5rem);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.pc-overlay {
    position: fixed;
    z-index: 90;
    inset: 0;
    display: flex;
    justify-content: flex-end;
    padding: 0;
    background: rgba(2, 6, 23, 0.76);
    backdrop-filter: blur(4px);
}

.pc-drawer {
    display: flex;
    width: min(34rem, 100%);
    max-height: 100dvh;
    flex-direction: column;
    border-left: 1px solid var(--pc-border-strong);
    background: #111b2f;
    box-shadow: -24px 0 70px rgba(2, 6, 23, 0.55);
}

.pc-drawer__header {
    display: flex;
    flex: 0 0 auto;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--pc-space-4);
    padding: var(--pc-space-5) var(--pc-space-6);
    border-bottom: 1px solid var(--pc-border);
}

.pc-drawer__body {
    min-height: 0;
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: var(--pc-space-6);
}

.pc-drawer__footer {
    display: flex;
    flex: 0 0 auto;
    justify-content: flex-end;
    gap: var(--pc-space-2);
    padding: var(--pc-space-4) var(--pc-space-6);
    border-top: 1px solid var(--pc-border);
    background: rgba(15, 23, 42, 0.58);
}

.pc-menu-anchor {
    position: relative;
}

.pc-menu {
    position: absolute;
    z-index: 70;
    top: calc(100% + 0.5rem);
    right: 0;
    width: min(18rem, calc(100vw - 2rem));
    max-height: min(24rem, calc(100dvh - 7rem));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0.6rem;
    border: 1px solid var(--pc-border-strong);
    border-radius: var(--pc-radius);
    background: rgba(15, 23, 42, 0.98);
    box-shadow: var(--pc-shadow);
}

.pc-dialog::backdrop {
    background: rgba(2, 6, 23, 0.78);
    backdrop-filter: blur(4px);
}

.pc-dialog__body {
    padding: 1.4rem;
}

.pc-dialog__title {
    margin: 0;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 800;
}

.pc-dialog__message {
    margin: 0.65rem 0 0;
    color: var(--pc-text-muted);
    line-height: 1.55;
}

.pc-dialog__verify {
    width: 100%;
    margin-top: 1rem;
    padding: 0.7rem 0.8rem;
    background: rgba(15, 23, 42, 0.75);
    color: #fff;
}

.pc-dialog__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
    padding: 0 1.4rem 1.4rem;
}

.pc-muted {
    color: var(--pc-text-muted);
}

.pc-account-overview {
    padding: clamp(1rem, 2vw, 1.4rem);
}

.pc-account-grid {
    display: grid;
    gap: var(--pc-section-gap);
}

.pc-account-panel {
    min-width: 0;
    padding: clamp(1rem, 2vw, 1.25rem);
}

.pc-account-groups {
    order: 1;
}

.pc-account-characters {
    order: 2;
}

.pc-group-list {
    display: grid;
    gap: 0.75rem;
}

.pc-group-entry {
    min-width: 0;
}

.pc-group-select__container {
    max-width: 64rem;
}

.pc-group-select__container[data-authenticated="false"] {
    max-width: 38rem;
}

.pc-entry-actions {
    display: grid;
    gap: 0.75rem;
}

.pc-login-panel {
    padding: clamp(1.25rem, 4vw, 2rem);
}

.pc-calendar-shell {
    position: relative;
    overflow: auto;
    overscroll-behavior-inline: contain;
    scrollbar-gutter: stable;
}

.pc-calendar-table {
    width: 100%;
    min-width: 62rem;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
}

.pc-calendar-table th,
.pc-calendar-table td {
    vertical-align: middle;
}

.pc-calendar-time {
    position: sticky;
    left: 0;
    z-index: 12;
    width: 7.25rem;
    min-width: 7.25rem;
    background: #172033;
    box-shadow: 1px 0 0 var(--pc-border);
}

.pc-calendar-table thead th {
    position: sticky;
    top: 0;
    z-index: 11;
    background: #1e293b;
}

.pc-calendar-table thead .pc-calendar-time {
    z-index: 13;
}

.pc-calendar-cell {
    height: 4rem;
    min-width: 7rem;
}

.pc-claim-segment {
    min-height: 3rem;
    padding: 0.6rem 2.35rem 0.6rem 0.75rem;
    border-radius: 0.65rem;
    overflow: hidden;
}

.pc-claim-segment > div {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pc-claim-trim {
    top: 50% !important;
    right: 0.125rem !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: transparent;
    font-size: 0 !important;
    opacity: 0;
    transform: translateY(-50%);
}

.pc-claim-trim::after {
    display: grid;
    width: 1.75rem;
    height: 1.75rem;
    place-items: center;
    border: 1px solid rgba(254, 202, 202, 0.35);
    border-radius: 0.45rem;
    background: rgba(220, 38, 38, 0.9);
    box-shadow: 0 0.25rem 0.65rem rgba(0, 0, 0, 0.24);
    color: #fff;
    content: "×";
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1;
    pointer-events: none;
    transition: background-color 120ms ease, box-shadow 120ms ease;
}

.pc-claim-trim:hover::after {
    background: rgba(239, 68, 68, 0.96);
}

.pc-claim-trim:focus-visible {
    outline: 0;
    box-shadow: none;
}

.pc-claim-trim:focus-visible::after {
    box-shadow: 0 0 0 0.15rem #0f172a, 0 0 0 0.3rem var(--pc-info);
}

.pc-claim-trim[data-pending="true"] {
    opacity: 1;
}

.pc-claim-trim[data-pending="true"]::before {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    display: block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.96);
    border-right-color: transparent;
    border-radius: 999px;
    content: "";
    transform: translate(-50%, -50%);
    animation: pc-spin-centered 650ms linear infinite;
}

.pc-claim-trim[data-pending="true"]::after {
    content: "";
}

.pc-claim-segment:hover .pc-claim-trim,
.pc-claim-trim:focus-visible {
    opacity: 1;
}

.pc-calendar-add {
    min-height: 4rem;
    border-radius: 0;
}

.pc-admin-summary-grid,
.pc-admin-actions-grid {
    display: grid;
    gap: 1rem;
}

.pc-admin-group-grid {
    display: grid;
    gap: 1.25rem;
}

.pc-admin-group-section {
    min-width: 0;
}

.pc-admin-group-section:last-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: 0 !important;
}

.pc-admin-spawn-table {
    min-width: 68rem;
    table-layout: fixed;
}

.pc-admin-spawn-table th,
.pc-admin-spawn-table td {
    vertical-align: middle;
}

.pc-admin-spawn-table__name-column {
    width: 27%;
}

.pc-admin-spawn-table__level-column {
    width: 8%;
}

.pc-admin-spawn-table__metric-column {
    width: 13%;
}

.pc-admin-spawn-table__vocations-column {
    width: 15%;
}

.pc-admin-spawn-table__monsters-column {
    width: 10%;
}

.pc-admin-spawn-table__actions-column {
    width: 14%;
}

.pc-admin-spawn-table__name {
    overflow-wrap: anywhere;
}

.pc-admin-spawn-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(4.75rem, 1fr));
    gap: 0.5rem;
    align-items: center;
    justify-content: end;
}

.pc-admin-spawn-action,
.pc-admin-spawn-action-form {
    width: 100%;
    min-width: 0;
}

.pc-admin-spawn-action {
    white-space: nowrap;
}

.pc-responsive-table-wrap {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-gutter: stable;
}

.pc-responsive-table {
    width: 100%;
}

.pc-responsive-table th {
    white-space: nowrap;
}

.pc-responsive-table input:not([type="checkbox"]):not([type="radio"]),
.pc-responsive-table select {
    width: 100%;
}

.pc-responsive-table input[type="checkbox"],
.pc-responsive-table input[type="radio"] {
    width: 1rem;
    min-width: 1rem;
    flex: 0 0 1rem;
}

.pc-feature-card {
    position: relative;
    border: 1px solid var(--pc-border);
    background: rgba(30, 41, 59, 0.72);
    box-shadow: none;
    color: var(--pc-text);
}

.pc-feature-card p {
    color: #cbd5e1;
}

.pc-landing-hero {
    min-height: min(43rem, 88dvh);
    padding: 7.25rem 0 4rem;
}

.pc-site-footer a {
    display: inline-flex;
    min-height: 2.5rem;
    align-items: center;
}

#user-menu-container [role="menu"],
#user-menu-container > div {
    width: min(18rem, calc(100vw - 2rem));
    max-height: min(26rem, calc(100dvh - 8rem));
    overflow-y: auto;
    overscroll-behavior: contain;
}

.pc-app-nav {
    position: relative;
    border-bottom: 1px solid var(--pc-border);
    background: rgba(30, 41, 59, 0.5);
}

.pc-app-nav__scroller {
    display: flex;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
}

.pc-app-nav__scroller::-webkit-scrollbar {
    display: none;
}

.pc-app-nav__item {
    position: relative;
    flex: 0 0 auto;
    padding: 0.75rem 1rem;
    color: var(--pc-text-muted);
    font-size: 0.9rem;
    font-weight: 650;
    white-space: nowrap;
}

.pc-app-nav__item:hover {
    color: var(--pc-text);
}

.pc-app-nav__item[aria-current="page"] {
    color: #facc15;
}

.pc-app-nav__item[aria-current="page"]::after {
    position: absolute;
    right: 0.75rem;
    bottom: 0;
    left: 0.75rem;
    height: 2px;
    border-radius: 999px;
    background: #facc15;
    content: "";
}

.pc-app-header-row,
.pc-app-header-main,
.pc-app-context {
    display: flex;
    min-width: 0;
    align-items: center;
}

.pc-branded-header {
    border-bottom: 1px solid color-mix(in srgb, var(--pc-vocation-accent) 34%, transparent);
    background:
        linear-gradient(90deg, rgba(7, 16, 26, 0.96), rgba(20, 32, 46, 0.94)),
        var(--pc-bg-deep);
    box-shadow: 0 12px 34px rgba(2, 8, 16, 0.2);
    backdrop-filter: blur(14px);
}

.pc-brand-lockup {
    display: inline-flex;
    min-width: 0;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.65rem;
    color: inherit;
    transition: opacity 160ms ease;
}

.pc-brand-lockup:hover {
    opacity: 0.9;
}

.pc-vocation-crest {
    width: 2.75rem;
    height: 2.75rem;
    flex: 0 0 2.75rem;
    border: 2px solid color-mix(in srgb, var(--pc-vocation-accent) 72%, #f8e8bd);
    border-radius: 0.8rem;
    background: #08121e;
    box-shadow:
        0 0 0 1px rgba(6, 12, 20, 0.9),
        0 8px 24px color-mix(in srgb, var(--pc-vocation-accent) 20%, transparent);
    object-fit: cover;
    object-position: center 39%;
}

.pc-app-header-row {
    justify-content: space-between;
    gap: var(--pc-space-4);
}

.pc-app-header-main {
    flex: 1 1 auto;
    gap: var(--pc-space-4);
}

.pc-app-context {
    gap: var(--pc-space-2);
}

.pc-app-user {
    position: relative;
    flex: 0 0 auto;
}

.pc-member-list {
    display: grid;
    gap: 0.75rem;
}

.pc-member-row {
    display: grid;
    grid-template-columns: minmax(13rem, 1.25fr) minmax(12rem, 1fr) auto auto;
    align-items: center;
    gap: var(--pc-space-4);
    padding: var(--pc-space-4) var(--pc-space-5);
    border: 1px solid var(--pc-border);
    border-radius: var(--pc-radius);
    background: rgba(30, 41, 59, 0.62);
}

.pc-member-row[data-current="true"] {
    border-color: rgba(74, 222, 128, 0.34);
    background: rgba(22, 101, 52, 0.08);
}

.pc-member-row__identity,
.pc-member-row__characters {
    min-width: 0;
}

.pc-member-row__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(5rem, auto));
    gap: var(--pc-space-4);
}

.pc-member-row__actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--pc-space-2);
}

.pc-chip-list {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.pc-chip {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.55rem;
    border: 1px solid var(--pc-border);
    border-radius: 999px;
    font-size: 0.72rem;
    line-height: 1.2;
}

.pc-claim-list {
    display: grid;
    gap: 0.65rem;
}

.pc-claim-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--pc-space-3);
    padding: 0.8rem;
    border: 1px solid var(--pc-border);
    border-radius: var(--pc-radius-sm);
    background: rgba(15, 23, 42, 0.42);
}

.pc-spawn-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: var(--pc-space-4);
    padding: var(--pc-space-4);
}

.pc-spawn-card--pinned {
    border-color: rgba(250, 204, 21, 0.42);
    background:
        linear-gradient(135deg, rgba(250, 204, 21, 0.06), transparent 45%),
        var(--pc-surface);
}

.pc-spawn-card__heading {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--pc-space-3);
}

.pc-page--spawn-directory {
    --pc-content: 100rem;
}

.pc-spawn-tools {
    display: grid;
    gap: 0.875rem;
}

.pc-spawn-tools__search {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pc-spawn-filters {
    border: 1px solid var(--pc-border);
    border-radius: var(--pc-radius);
    background: rgba(15, 23, 42, 0.38);
}

.pc-spawn-filters summary {
    display: flex;
    min-height: 2.9rem;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 0.9rem;
    color: #dbe4f0;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 750;
    list-style: none;
}

.pc-spawn-filters summary::-webkit-details-marker {
    display: none;
}

.pc-spawn-filters summary::after {
    margin-left: auto;
    color: var(--pc-text-muted);
    content: "+";
    font-size: 1.15rem;
    line-height: 1;
}

.pc-spawn-filters[open] summary::after {
    content: "−";
}

.pc-spawn-filters[open] summary {
    border-bottom: 1px solid rgba(201, 156, 68, 0.16);
}

.pc-spawn-filters > div {
    padding: 0 0.9rem 0.9rem;
}

.pc-spawn-filters__hint {
    color: var(--pc-text-muted);
    font-size: 0.74rem;
    font-weight: 500;
}

.pc-spawn-results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
}

.pc-segmented-control {
    display: inline-flex;
    max-width: 100%;
    padding: 0.2rem;
    border: 1px solid var(--pc-border);
    border-radius: 999px;
    background: rgba(7, 16, 26, 0.58);
    overflow-x: auto;
}

.pc-segmented-control button {
    min-height: 2.15rem;
    flex: 0 0 auto;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    color: var(--pc-text-muted);
    font-size: 0.76rem;
    font-weight: 700;
    white-space: nowrap;
}

.pc-segmented-control button:hover {
    color: var(--pc-text);
}

.pc-segmented-control button[aria-pressed="true"] {
    background: rgba(201, 156, 68, 0.18);
    color: #f9dfa5;
    box-shadow: inset 0 0 0 1px rgba(201, 156, 68, 0.24);
}

.pc-spawn-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    align-items: stretch;
}

.pc-spawn-grid > .pc-empty {
    grid-column: 1 / -1;
}

.pc-spawn-card__title {
    display: -webkit-box;
    color: var(--pc-text);
    font-size: 1.05rem;
    font-weight: 760;
    letter-spacing: -0.01em;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.pc-spawn-card__location {
    margin-top: 0.25rem;
    color: var(--pc-text-muted);
    font-size: 0.76rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pc-spawn-card__availability {
    min-height: 2rem;
}

.pc-spawn-card__availability .pc-spawn-availability {
    margin-top: 0;
}

.pc-spawn-card__monsters {
    min-height: 3.5rem;
}

.pc-spawn-card__sprites {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.pc-spawn-sprite {
    display: grid;
    position: relative;
    width: 3.4rem;
    height: 3.4rem;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 0.75rem;
    background: linear-gradient(145deg, rgba(30, 45, 63, 0.96), rgba(11, 24, 38, 0.96));
    color: #8290a2;
    font-size: 0.72rem;
    font-weight: 800;
    transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.pc-spawn-sprite:hover,
.pc-spawn-sprite:focus-visible {
    z-index: 3;
    border-color: rgba(201, 156, 68, 0.58);
    box-shadow: 0 0 0 3px rgba(201, 156, 68, 0.12);
    outline: none;
    transform: translateY(-2px);
}

.pc-spawn-sprite[data-monster-name]::after {
    position: absolute;
    bottom: calc(100% + 0.45rem);
    left: 50%;
    z-index: 4;
    max-width: 13rem;
    padding: 0.35rem 0.5rem;
    border: 1px solid rgba(201, 156, 68, 0.34);
    border-radius: 0.45rem;
    background: #07101a;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.32);
    color: #f8fafc;
    content: attr(data-monster-name);
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.25;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    text-overflow: ellipsis;
    transform: translate(-50%, 0.2rem);
    transition: opacity 120ms ease, transform 120ms ease;
    visibility: hidden;
    white-space: nowrap;
}

.pc-spawn-sprite[data-monster-name]:hover::after,
.pc-spawn-sprite[data-monster-name]:focus-visible::after {
    opacity: 1;
    transform: translate(-50%, 0);
    visibility: visible;
}

.pc-spawn-sprite img {
    width: 100%;
    height: 100%;
    padding: 0.22rem;
    image-rendering: pixelated;
    object-fit: contain;
}

.pc-spawn-sprite--empty {
    background: #172536;
}

.pc-spawn-pin {
    flex: 0 0 auto;
    color: var(--pc-text-muted);
}

.pc-spawn-pin:hover:not(:disabled) {
    background: rgba(250, 204, 21, 0.1);
    color: #fde047;
}

.pc-spawn-pin[aria-pressed="true"] {
    border-color: rgba(250, 204, 21, 0.38);
    background: rgba(250, 204, 21, 0.12);
    color: #facc15;
}

.pc-spawn-availability {
    display: inline-flex;
    max-width: 100%;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.65rem;
    padding: 0.35rem 0.6rem;
    border: 1px solid var(--pc-border);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.46);
    color: #cbd5e1;
    font-size: 0.76rem;
    font-weight: 650;
    line-height: 1.3;
}

.pc-spawn-availability__dot {
    width: 0.45rem;
    height: 0.45rem;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #94a3b8;
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.12);
}

.pc-spawn-availability[data-availability-state="free"] {
    border-color: rgba(52, 211, 153, 0.26);
    color: #a7f3d0;
}

.pc-spawn-availability[data-availability-state="free"] .pc-spawn-availability__dot {
    background: #34d399;
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.13);
}

.pc-spawn-availability[data-availability-state="claimed"] {
    border-color: rgba(251, 191, 36, 0.28);
    color: #fde68a;
}

.pc-spawn-availability[data-availability-state="claimed"] .pc-spawn-availability__dot {
    background: #fbbf24;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.13);
}

.pc-booking-limits {
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: var(--pc-radius);
    background: linear-gradient(135deg, rgba(14, 116, 144, 0.12), rgba(15, 23, 42, 0.62));
}

.pc-booking-limits--compact {
    margin-bottom: 1.5rem;
    padding: 0.875rem;
}

.pc-booking-limits__header {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.pc-booking-limits__eyebrow {
    color: #bae6fd;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.pc-booking-limits__daily,
.pc-booking-limits__usage {
    color: #cbd5e1;
    font-size: 0.8125rem;
    line-height: 1.5;
}

.pc-booking-limits__daily {
    margin-top: 0.2rem;
}

.pc-booking-limits__daily strong,
.pc-booking-limits__usage strong {
    color: #f8fafc;
    font-weight: 700;
}

.pc-booking-limits__role {
    flex: 0 0 auto;
    padding: 0.25rem 0.55rem;
    border: 1px solid rgba(125, 211, 252, 0.25);
    border-radius: 999px;
    background: rgba(14, 116, 144, 0.16);
    color: #bae6fd;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    line-height: 1.25;
    text-transform: uppercase;
}

.pc-booking-limits__usage {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    padding-top: 0.7rem;
    border-top: 1px solid rgba(148, 163, 184, 0.15);
}

.pc-booking-limits__help {
    color: #94a3b8;
    font-size: 0.75rem;
    line-height: 1.45;
}

.pc-monster-list {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pc-monster-chip {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.65rem;
    border: 1px solid var(--pc-border);
    border-radius: var(--pc-radius-sm);
    background: rgba(30, 41, 59, 0.7);
    color: #e2e8f0;
    font-size: 0.78rem;
    font-weight: 600;
}

.pc-monster-chip img {
    width: 2rem;
    height: 2rem;
    flex: 0 0 auto;
    object-fit: contain;
}

.pc-spawn-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
}

.pc-spawn-stat {
    min-width: 0;
    padding: 0.6rem;
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: var(--pc-radius-sm);
    background: rgba(15, 23, 42, 0.32);
}

.pc-spawn-stat dt {
    color: var(--pc-text-muted);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.pc-spawn-stat dd {
    margin-top: 0.2rem;
    font-size: 0.9rem;
    font-weight: 780;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pc-spawn-card__footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 0.15rem;
}

.pc-spawn-card__vocations {
    display: grid;
    min-width: 0;
    gap: 0.1rem;
    color: var(--pc-text-muted);
    font-size: 0.65rem;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.pc-spawn-card__vocations strong {
    color: #dbe4f0;
    font-size: 0.74rem;
    letter-spacing: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: none;
    white-space: nowrap;
}

.pc-spawn-card__footer .pc-btn {
    min-height: 2.45rem;
    flex: 0 0 auto;
    padding: 0.55rem 0.75rem;
    font-size: 0.78rem;
}

.pc-page--my-claims {
    --pc-content: 100rem;
}

.pc-my-claims-total {
    flex: 0 0 auto;
    border-color: rgba(201, 156, 68, 0.28);
    background: rgba(201, 156, 68, 0.08);
    color: #f7dfaa;
}

.pc-claim-character-list {
    display: grid;
    gap: var(--pc-space-5);
}

.pc-claim-character {
    display: grid;
    gap: var(--pc-space-4);
    padding: var(--pc-space-5);
}

.pc-claim-character[data-current="true"] {
    border-color: rgba(52, 211, 153, 0.34);
    background:
        linear-gradient(135deg, rgba(16, 185, 129, 0.045), transparent 42%),
        var(--pc-surface);
}

.pc-claim-character__header,
.pc-claim-character__identity,
.pc-claim-character__badges {
    display: flex;
    align-items: center;
}

.pc-claim-character__header {
    min-width: 0;
    justify-content: space-between;
    gap: var(--pc-space-3);
}

.pc-claim-character__identity {
    min-width: 0;
    gap: 0.65rem;
    color: #f5d785;
}

.pc-claim-character[data-current="true"] .pc-claim-character__identity {
    color: #6ee7b7;
}

.pc-claim-character__identity h2 {
    color: inherit;
    font-size: 1.1rem;
    font-weight: 760;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pc-claim-character__badges {
    flex: 0 0 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.45rem;
}

.pc-claim-character__current {
    padding: 0.35rem 0.6rem;
    border: 1px solid rgba(52, 211, 153, 0.26);
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.16);
    color: #a7f3d0;
    font-size: 0.7rem;
    font-weight: 780;
}

.pc-my-claim-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.pc-my-claim-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: var(--pc-space-4);
    padding: var(--pc-space-4);
}

.pc-my-claim-card[data-claim-state="active"] {
    border-color: rgba(52, 211, 153, 0.36);
    box-shadow: inset 3px 0 0 rgba(52, 211, 153, 0.72);
}

.pc-my-claim-card__heading {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.7rem;
}

.pc-my-claim-card__heading h3 {
    min-width: 0;
    color: #f8fafc;
    font-size: 1rem;
    font-weight: 780;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.pc-my-claim-status {
    display: inline-flex;
    min-height: 1.65rem;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.5rem;
    border: 1px solid rgba(96, 165, 250, 0.24);
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.11);
    color: #bfdbfe;
    font-size: 0.66rem;
    font-weight: 780;
    line-height: 1.15;
    white-space: nowrap;
}

.pc-my-claim-status > span {
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 999px;
    background: currentColor;
}

.pc-my-claim-status[data-state="active"] {
    border-color: rgba(52, 211, 153, 0.28);
    background: rgba(16, 185, 129, 0.13);
    color: #6ee7b7;
}

.pc-my-claim-status[data-state="past"] {
    border-color: rgba(148, 163, 184, 0.18);
    background: rgba(71, 85, 105, 0.18);
    color: #94a3b8;
}

.pc-my-claim-time {
    display: grid;
    gap: 0.18rem;
    padding: 0.75rem;
    border: 1px solid rgba(201, 156, 68, 0.2);
    border-radius: var(--pc-radius-sm);
    background: linear-gradient(135deg, rgba(201, 156, 68, 0.08), rgba(15, 23, 42, 0.2));
}

.pc-my-claim-time > span,
.pc-my-claim-meta dt {
    color: var(--pc-text-muted);
    font-size: 0.64rem;
    font-weight: 750;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.pc-my-claim-time strong {
    color: #f8fafc;
    font-size: 0.9rem;
}

.pc-my-claim-time time {
    color: #f5d785;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.015em;
}

.pc-my-claim-meta {
    display: grid;
    grid-template-columns: minmax(5rem, 0.55fr) minmax(0, 1.45fr);
    gap: 0.45rem;
}

.pc-my-claim-meta > div {
    min-width: 0;
    padding: 0.65rem;
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: var(--pc-radius-sm);
    background: rgba(15, 23, 42, 0.3);
}

.pc-my-claim-meta dd {
    margin-top: 0.2rem;
    color: #dbe4f0;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.pc-my-claim-discord {
    margin-top: -0.25rem;
    padding-top: 0.7rem;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    color: var(--pc-text-muted);
    font-size: 0.7rem;
}

.pc-my-claim-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
    margin-top: auto;
}

.pc-my-claim-actions .pc-btn {
    width: 100%;
    min-width: 0;
    min-height: 2.45rem;
    padding: 0.5rem 0.55rem;
    font-size: 0.74rem;
}

@media (min-width: 96rem) {
    .pc-spawn-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 68rem) {
    .pc-spawn-grid,
    .pc-my-claim-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 50rem) {
    .pc-my-claim-grid {
        grid-template-columns: 1fr;
    }
}

.pc-route-header {
    border-bottom: 1px solid var(--pc-border);
    background: rgba(2, 6, 23, 0.9);
}

.pc-route-header__inner {
    display: flex;
    width: min(100%, var(--pc-content));
    min-height: 4.75rem;
    align-items: center;
    justify-content: space-between;
    gap: var(--pc-space-4);
    margin-inline: auto;
    padding: 0.75rem var(--pc-page-gutter);
}

.pc-route-header__actions {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: var(--pc-space-2);
}

.pc-world-picker {
    min-width: 15rem;
    flex: 1 1 15rem;
}

.pc-event-card {
    display: grid;
    gap: var(--pc-space-5);
    padding: clamp(1rem, 2.5vw, 1.5rem);
    border: 1px solid var(--pc-border);
    border-radius: var(--pc-radius-lg);
    background: rgba(12, 22, 36, 0.92);
    box-shadow: var(--pc-shadow);
}

.pc-event-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--pc-space-5);
}

.pc-event-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--pc-space-3);
}

.pc-event-meta {
    min-width: 0;
    padding: 0.8rem;
    border: 1px solid var(--pc-border);
    border-radius: var(--pc-radius-sm);
    background: rgba(2, 6, 23, 0.32);
}

.pc-event-card__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--pc-space-3);
}

img {
    height: auto;
}

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

@keyframes pc-spin-centered {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes pc-shimmer {
    to { transform: translateX(100%); }
}

@keyframes pc-toast-in {
    from { opacity: 0; transform: translateY(0.5rem); }
}

@media (max-width: 639px) {
    .pc-container {
        width: min(calc(100% - 1.25rem), var(--pc-content));
    }

    .pc-toast-region,
    .pc-action-status {
        right: 0.625rem;
        bottom: 0.625rem;
        max-width: calc(100vw - 1.25rem);
        width: calc(100vw - 1.25rem);
    }

    .pc-dialog__actions {
        flex-direction: column-reverse;
    }

    .pc-dialog__actions .pc-btn {
        width: 100%;
    }

    .pc-page-header {
        flex-direction: column;
    }

    .pc-page-header > .pc-action-cluster,
    .pc-page-header > .pc-toolbar {
        width: 100%;
    }

    .pc-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .pc-toolbar > *,
    .pc-action-cluster > .pc-btn {
        width: 100%;
    }

    .pc-stat-grid,
    .pc-form-grid {
        grid-template-columns: 1fr;
    }

    .pc-form-grid__wide {
        grid-column: auto;
    }

    .pc-account-overview {
        border-radius: var(--pc-radius);
    }

    .pc-account-panel {
        border-radius: var(--pc-radius);
    }

    .pc-group-entry > div {
        align-items: flex-start;
    }

    .pc-group-entry [data-entry-label] {
        align-self: stretch;
        text-align: center;
    }

    .pc-calendar-table {
        min-width: 54rem;
    }

    .pc-calendar-time {
        width: 6.5rem;
        min-width: 6.5rem;
    }

    .pc-calendar-cell {
        height: 4rem;
    }

    .pc-overlay-dialog {
        max-height: calc(100dvh - 1rem);
    }

    .pc-overlay {
        align-items: flex-end;
    }

    .pc-drawer {
        width: 100%;
        max-height: calc(100dvh - env(safe-area-inset-top));
        border-top: 1px solid var(--pc-border-strong);
        border-left: 0;
        border-radius: var(--pc-radius-lg) var(--pc-radius-lg) 0 0;
    }

    .pc-drawer__header,
    .pc-drawer__body,
    .pc-drawer__footer {
        padding-inline: var(--pc-space-4);
    }

    .pc-drawer__footer {
        align-items: stretch;
        flex-direction: column-reverse;
        padding-bottom: calc(var(--pc-space-4) + env(safe-area-inset-bottom));
    }

    .pc-drawer__footer .pc-btn {
        width: 100%;
    }

    .pc-menu {
        position: fixed;
        top: auto;
        right: 0.75rem;
        bottom: 0.75rem;
        left: 0.75rem;
        width: auto;
        max-height: min(28rem, calc(100dvh - 1.5rem));
    }

    .pc-member-row {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        padding: var(--pc-space-4);
    }

    .pc-member-row__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 0.75rem;
        border-radius: var(--pc-radius-sm);
        background: rgba(15, 23, 42, 0.36);
    }

    .pc-member-row__actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pc-member-row__actions .pc-btn {
        width: 100%;
    }

    .pc-claim-row {
        align-items: stretch;
        flex-direction: column;
    }

    .pc-claim-row .pc-action-cluster {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pc-spawn-tools__search,
    .pc-spawn-results-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .pc-segmented-control {
        width: 100%;
    }

    .pc-segmented-control button {
        flex: 1 0 auto;
    }

    .pc-spawn-grid {
        grid-template-columns: 1fr;
    }

    .pc-my-claims-total {
        align-self: flex-start;
    }

    .pc-claim-character {
        padding: var(--pc-space-4);
    }

    .pc-claim-character__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .pc-claim-character__badges {
        justify-content: flex-start;
    }

    .pc-monster-list {
        flex-wrap: nowrap;
        margin-inline: -0.25rem;
        padding: 0.25rem;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scrollbar-width: thin;
    }

    .pc-monster-chip {
        flex: 0 0 auto;
        max-width: 12rem;
    }

    .pc-spawn-card__footer {
        align-items: stretch;
        flex-direction: column;
    }

    .pc-spawn-card__footer .pc-btn {
        width: 100%;
    }

    .pc-route-header__inner {
        align-items: flex-start;
    }

    .pc-route-header__actions {
        flex: 1 1 auto;
    }

    .pc-route-header__actions .pc-btn {
        flex: 1 1 auto;
    }

    .pc-event-card {
        gap: var(--pc-space-4);
    }

    .pc-event-card__header {
        flex-direction: column;
        gap: var(--pc-space-3);
    }

    .pc-event-meta-grid {
        grid-template-columns: 1fr;
        gap: 0.55rem;
    }

    .pc-event-meta {
        display: grid;
        grid-template-columns: minmax(6rem, 0.75fr) minmax(0, 1.25fr);
        align-items: center;
        gap: 0.75rem;
        padding: 0.7rem 0.8rem;
    }

    .pc-event-card__footer,
    .pc-event-card__footer .pc-btn {
        width: 100%;
    }

    .pc-app-header-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.75rem;
    }

    .pc-app-header-main {
        display: contents;
    }

    .pc-app-context {
        grid-column: 1 / -1;
        width: 100%;
        padding-bottom: 0.15rem;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scrollbar-width: none;
    }

    .pc-app-context::-webkit-scrollbar {
        display: none;
    }

    .pc-app-user {
        width: auto;
    }

    .pc-app-user > button {
        width: auto;
        max-width: 11rem;
    }

    .pc-site-footer a {
        width: 100%;
        justify-content: center;
    }

    .pc-landing-hero {
        min-height: auto;
        padding: 6rem 0 3rem;
    }
}

@media (hover: none) {
    .pc-claim-trim {
        opacity: 1;
    }
}

@media (min-width: 640px) {
    .pc-entry-actions--split {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .pc-admin-actions-grid,
    .pc-admin-group-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .pc-account-grid {
        grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.65fr);
        align-items: start;
    }

    .pc-group-list:not(.pc-group-list--single) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (min-width: 1440px) {
    .pc-admin-group-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 640px) and (max-width: 1023px) {
    .pc-member-row {
        grid-template-columns: minmax(12rem, 1.2fr) minmax(11rem, 1fr) auto;
    }

    .pc-member-row__actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }
}

@media (max-width: 1023px) {
    .pc-responsive-table-wrap {
        overflow: visible;
        border: 0;
        background: transparent;
    }

    .pc-responsive-table,
    .pc-responsive-table tbody,
    .pc-responsive-table tr,
    .pc-responsive-table td {
        display: block;
        width: 100%;
    }

    .pc-responsive-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .pc-responsive-table tbody {
        display: grid;
        gap: 0.9rem;
    }

    .pc-responsive-table tr {
        padding: 1rem;
        border: 1px solid var(--pc-border);
        border-radius: var(--pc-radius);
        background: var(--pc-surface);
    }

    .pc-responsive-table td {
        display: grid;
        grid-template-columns: minmax(6.5rem, 0.8fr) minmax(0, 1.2fr);
        align-items: center;
        gap: 0.75rem;
        padding: 0.45rem 0 !important;
        border: 0;
        text-align: left !important;
    }

    .pc-responsive-table td::before {
        color: var(--pc-text-muted);
        content: attr(data-label);
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .pc-responsive-table td:first-child {
        padding-top: 0 !important;
    }

    .pc-responsive-table td:last-child {
        margin-top: 0.35rem;
        padding-top: 0.8rem !important;
        border-top: 1px solid var(--pc-border);
    }

    .pc-responsive-table td:last-child > div {
        justify-content: flex-start;
    }

    .pc-responsive-table td > input,
    .pc-responsive-table td > select,
    .pc-responsive-table td > label,
    .pc-responsive-table td > div {
        min-width: 0;
        max-width: 100%;
    }

    .pc-responsive-table .pc-responsive-table__empty {
        display: block;
        padding: 1.5rem !important;
        text-align: center !important;
    }

    .pc-responsive-table .pc-responsive-table__empty::before {
        content: none;
    }

    .pc-admin-spawn-table {
        min-width: 0;
        table-layout: auto;
    }

    .pc-admin-spawn-table colgroup {
        display: none;
    }

    .pc-admin-spawn-actions {
        width: 100%;
        max-width: 22rem;
        justify-content: stretch !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.pc-privacy-banner {
    position: fixed;
    z-index: 1000;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    color: #e5edf7;
    border: 1px solid rgba(245, 197, 66, 0.4);
    border-radius: 1rem;
    background: rgba(7, 16, 26, 0.98);
    box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.55);
}

.pc-privacy-banner__inner {
    display: flex;
    width: min(72rem, 100%);
    margin: 0 auto;
    padding: 1rem;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.pc-privacy-banner__copy {
    max-width: 50rem;
}

.pc-privacy-banner h2 {
    margin: 0 0 0.35rem;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
}

.pc-privacy-banner p {
    margin: 0.2rem 0;
    color: #b6c3d4;
    font-size: 0.875rem;
    line-height: 1.5;
}

.pc-privacy-banner a {
    color: #f5c542;
    text-decoration: underline;
    text-underline-offset: 0.15rem;
}

.pc-privacy-banner__status {
    min-height: 1.25rem;
    color: #fca5a5 !important;
}

.pc-privacy-banner__actions {
    display: flex;
    flex: 0 0 auto;
    gap: 0.65rem;
}

.pc-privacy-choice {
    min-height: 2.75rem;
    padding: 0.65rem 1rem;
    color: #f8fafc;
    border: 1px solid #526176;
    border-radius: 0.75rem;
    background: #172235;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 750;
    cursor: pointer;
}

.pc-privacy-choice:hover,
.pc-privacy-choice:focus-visible {
    border-color: #f5c542;
    outline: none;
}

.pc-privacy-choice--primary {
    color: #101827;
    border-color: #f5c542;
    background: #f5c542;
}

.pc-privacy-choice:disabled {
    opacity: 0.6;
    cursor: wait;
}

@media (max-width: 48rem) {
    .pc-privacy-banner {
        right: 0.5rem;
        bottom: 0.5rem;
        left: 0.5rem;
    }

    .pc-privacy-banner__inner,
    .pc-privacy-banner__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .pc-privacy-banner__actions {
        width: 100%;
    }
}
