:root {
    color-scheme: light;
    --ph-primary: #0b3d91; /* deep blue */
    --ph-primary-dark: #072c66;
    --ph-primary-contrast: #f0f6ff;
    --ph-accent: #43d8c9; /* soft cyan */
    --ph-accent-dark: #2aa699;
    --ph-bg: #f3f6fb;
    --ph-surface: #ffffff;
    --ph-surface-alt: #eaf1ff;
    --ph-text: #172033;
    --ph-text-inverse: #ffffff;
    --ph-text-muted: #5a6a84;
    --ph-border: rgba(11, 61, 145, 0.12);
    --ph-shadow: 0 16px 40px rgba(11, 61, 145, 0.08);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--ph-bg);
    color: var(--ph-text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--ph-primary);
    text-decoration: none;
}

a:hover,
a:focus {
    color: var(--ph-primary-dark);
    text-decoration: underline;
}

.ph-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.ph-header {
    background: linear-gradient(135deg, var(--ph-primary) 0%, #134aad 45%, var(--ph-accent-dark) 100%);
    color: var(--ph-text-inverse);
    box-shadow: var(--ph-shadow);
}

.ph-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .ph-header__inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

.ph-brand {
    margin: 0;
    font-size: 1.35rem;
    letter-spacing: 0.04em;
}

.ph-brand a {
    color: var(--ph-text-inverse);
}
.ph-brand__link {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--ph-text-inverse);
    text-decoration: none;
    font-weight: 700;
}

.ph-brand__logo {
    max-height: 40px;
    width: auto;
    display: block;
}

.ph-brand__text {
    line-height: 1.2;
}

.ph-nav ul {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    list-style: none;
    gap: 1rem;
    flex-wrap: wrap;
}

.ph-nav__logout {
    display: inline;
    margin: 0;
}

.ph-nav__logout button {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
}

.ph-nav__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--ph-primary-contrast);
    background: rgba(255, 255, 255, 0.08);
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    border: 1px solid transparent;
    line-height: 1;
}

.ph-nav__link:hover,
.ph-nav__link:focus {
    background: rgba(255, 255, 255, 0.2);
    color: var(--ph-text-inverse);
}

.ph-nav__link--accent {
    background: var(--ph-accent);
    color: var(--ph-text);
    border-color: rgba(11, 61, 145, 0.1);
    box-shadow: 0 8px 18px rgba(67, 216, 201, 0.32);
}

.ph-nav__link--accent:hover,
.ph-nav__link--accent:focus {
    background: var(--ph-accent-dark);
    color: var(--ph-text-inverse);
    border-color: rgba(11, 61, 145, 0.18);
}

.ph-main {
    flex: 1;
    width: 100%;
    padding: clamp(2rem, 6vh, 3.5rem) 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.ph-main--centered {
    justify-content: center;
    align-items: center;
}

.ph-main--centered .messages {
    width: min(100%, 440px);
    margin: 0 auto;
}

.ph-main--wide {
    max-width: min(1280px, 95vw);
    width: 100%;
    margin: 0 auto;
    padding: clamp(2rem, 5vh, 3.5rem) clamp(1.5rem, 4vw, 3rem) clamp(3rem, 6vh, 4rem);
}

.ph-body--kiosk {
    background: radial-gradient(circle at top, rgba(67, 216, 201, 0.18), transparent 45%),
        linear-gradient(180deg, rgba(11, 61, 145, 0.05), rgba(11, 61, 145, 0.15));
}

.ph-main--kiosk {
    max-width: min(1080px, 100%);
    width: 100%;
    padding: clamp(1.5rem, 4vh, 3rem) clamp(1rem, 4vw, 2.5rem) clamp(2rem, 6vh, 3.5rem);
}

.ph-kiosk-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1.25rem 1.5rem;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(11, 61, 145, 0.92), rgba(67, 216, 201, 0.85));
    color: var(--ph-primary-contrast);
    box-shadow: var(--ph-shadow);
}

.ph-kiosk-header__brand {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ph-kiosk-logo {
    display: flex;
    align-items: center;
    min-height: 48px;
}

.ph-kiosk-logo__text {
    font-size: clamp(1.6rem, 1.8rem + 0.4vw, 2rem);
    font-weight: 700;
    letter-spacing: 0.05em;
}

.ph-kiosk-logo__img {
    max-height: 52px;
    width: auto;
    display: block;
}

.ph-kiosk-header__brand small {
    font-size: 0.9rem;
    opacity: 0.85;
}

.ph-kiosk-header__controls {
    display: grid;
    grid-template-columns: auto auto;
    gap: 0.75rem;
    align-items: end;
}

.ph-kiosk-select {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.85rem;
}

.ph-kiosk-select select {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.16);
    color: var(--ph-primary-contrast);
    padding: 0.45rem 0.75rem;
    font-weight: 600;
    min-width: 120px;
}

.ph-kiosk-select select option {
    color: var(--ph-text);
}

.ph-kiosk {
    display: grid;
    gap: clamp(1.5rem, 4vh, 2.5rem);
    width: 100%;
}

.ph-kiosk__layout {
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(320px, 1fr);
    gap: clamp(1.75rem, 4vw, 2.5rem);
    align-items: start;
}

.ph-kiosk__main {
    display: grid;
    gap: clamp(1.5rem, 3vh, 2rem);
}

.ph-kiosk-stream {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(67, 216, 201, 0.16));
    border: 1px solid rgba(11, 61, 145, 0.12);
    border-radius: 24px;
    box-shadow: var(--ph-shadow);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-height: 75vh;
}

.ph-kiosk-stream__header h2 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--ph-primary);
}

.ph-kiosk-stream__header p {
    margin: 0.25rem 0 0;
    color: var(--ph-text-muted);
    font-size: 0.92rem;
}

.ph-kiosk-stream__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
    scrollbar-width: thin;
}

.ph-kiosk-stream__list::-webkit-scrollbar {
    width: 6px;
}

.ph-kiosk-stream__list::-webkit-scrollbar-thumb {
    background: rgba(11, 61, 145, 0.25);
    border-radius: 999px;
}

.ph-kiosk-stream__item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 18px;
    border: 1px solid rgba(11, 61, 145, 0.1);
    box-shadow: 0 18px 32px rgba(11, 61, 145, 0.08);
    padding: 1rem 1.2rem;
    display: grid;
    gap: 0.6rem;
    position: relative;
}

.ph-kiosk-stream__item::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(67, 216, 201, 0.12), transparent);
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 0;
}

.ph-kiosk-stream__item:hover::before,
.ph-kiosk-stream__item:focus-within::before {
    opacity: 1;
}

.ph-kiosk-stream__item > * {
    position: relative;
    z-index: 1;
}

.ph-kiosk-stream__item--latest {
    border-color: rgba(67, 216, 201, 0.5);
    box-shadow: 0 24px 40px rgba(11, 61, 145, 0.15);
}

.ph-kiosk-stream__meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--ph-text-muted);
}

.ph-kiosk-stream__time {
    font-weight: 600;
    color: var(--ph-primary);
    letter-spacing: 0.04em;
}

.ph-kiosk-stream__service {
    font-weight: 600;
    text-transform: capitalize;
}

.ph-kiosk-stream__bubble {
    display: inline-flex;
    align-items: baseline;
    gap: 0.6rem;
    background: linear-gradient(135deg, rgba(234, 241, 255, 0.85), rgba(255, 255, 255, 0.95));
    border-radius: 16px;
    padding: 0.6rem 0.9rem;
    border: 1px solid rgba(11, 61, 145, 0.12);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ph-primary-dark);
}

.ph-kiosk-stream__ticket-label {
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    color: var(--ph-text-muted);
}

.ph-kiosk-stream__ticket-number {
    font-size: 1.35rem;
    letter-spacing: 0.04em;
}

.ph-kiosk-stream__note {
    margin: 0;
    font-size: 0.85rem;
    color: var(--ph-text);
}

.ph-kiosk-stream__note--muted {
    color: var(--ph-text-muted);
}

.ph-kiosk-stream__empty {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 18px;
    padding: 1.5rem;
    border: 1px dashed rgba(11, 61, 145, 0.2);
    text-align: center;
    display: grid;
    place-items: center;
}

.ph-kiosk-stream__footer {
    margin-top: auto;
}

.ph-kiosk-stream__qr {
    display: grid;
    gap: 0.75rem;
    justify-items: center;
    text-align: center;
}

.ph-kiosk-stream__qr-placeholder {
    width: 92px;
    height: 92px;
    border-radius: 16px;
    border: 2px dashed rgba(11, 61, 145, 0.25);
    display: grid;
    place-items: center;
    font-weight: 600;
    color: var(--ph-text-muted);
    background: rgba(255, 255, 255, 0.75);
}

@media (max-width: 1024px) {
    .ph-kiosk__layout {
        grid-template-columns: 1fr;
    }

    .ph-kiosk-stream {
        max-height: none;
    }
}

@media (max-width: 640px) {
    .ph-kiosk-stream {
        padding: 1.25rem;
    }

    .ph-kiosk-stream__item {
        padding: 0.9rem 1rem;
    }
}

.ph-kiosk__hero h1 {
    margin: 0;
    font-size: clamp(1.8rem, 2rem + 0.8vw, 2.6rem);
}

.ph-kiosk__hero p {
    margin: 0.5rem 0 0;
    color: var(--ph-text-muted);
    font-size: 1rem;
}

.ph-kiosk__services {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.ph-kiosk-card {
    position: relative;
    border-radius: 18px;
    padding: 1.4rem;
    border: 2px solid transparent;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(234, 241, 255, 0.7));
    box-shadow: var(--ph-shadow);
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    display: block;
    overflow: hidden;
}

.ph-kiosk-card input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.ph-kiosk-card__content {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    pointer-events: none;
    color: var(--ph-text);
}

.ph-kiosk-card__content strong {
    font-size: 1.15rem;
    letter-spacing: -0.01em;
}

.ph-kiosk-card__description {
    color: var(--ph-text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.ph-kiosk-card__meta {
    font-size: 0.85rem;
    color: var(--ph-accent-dark);
    font-weight: 600;
}

.ph-kiosk-card:hover,
.ph-kiosk-card:focus-within {
    transform: translateY(-4px);
    border-color: rgba(67, 216, 201, 0.45);
    box-shadow: 0 20px 35px rgba(11, 61, 145, 0.16);
}

.ph-kiosk-card input:checked + .ph-kiosk-card__content {
    color: var(--ph-primary);
}

.ph-kiosk-card input:checked ~ .ph-kiosk-card__content {
    color: var(--ph-primary);
}

.ph-kiosk-card input:checked ~ .ph-kiosk-card__content strong {
    color: var(--ph-primary-dark);
}

.ph-kiosk-card input:checked ~ .ph-kiosk-card__content .ph-kiosk-card__meta {
    color: var(--ph-primary-dark);
}

.ph-form__field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ph-form__field--inline {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.ph-kiosk-priority {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 600;
    color: var(--ph-text);
}

.ph-kiosk-priority small {
    display: block;
    font-weight: normal;
    color: var(--ph-text-muted);
}

.ph-input {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(11, 61, 145, 0.25);
    padding: 0.65rem 0.9rem;
    font: inherit;
    color: var(--ph-text);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(244, 247, 255, 0.65));
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ph-input::placeholder {
    color: rgba(23, 32, 51, 0.5);
}

.ph-input:focus {
    outline: none;
    border-color: var(--ph-primary);
    box-shadow: 0 0 0 3px rgba(11, 61, 145, 0.15);
    background: #fff;
}

input[type="search"].ph-input {
    -webkit-appearance: none;
    appearance: none;
}

input.ph-input--file {
    border: 1px dashed rgba(13, 37, 62, 0.25);
    border-radius: 12px;
    padding: 0.65rem;
    background: #fff;
}

.ph-setting-logo-preview {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 12px;
    background: rgba(13, 37, 62, 0.05);
    max-width: 320px;
}

.ph-setting-logo-preview img {
    max-height: 48px;
    width: auto;
    display: block;
}

.ph-form__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.ph-form__header-text h2 {
    margin: 0 0 0.35rem;
}

.ph-form__header-text p {
    margin: 0;
}

.ph-form__errors {
    margin: 0;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    list-style: none;
    background: rgba(214, 21, 57, 0.12);
    color: #a4163a;
    font-size: 0.85rem;
}

.ph-kiosk__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.ph-button--lg {
    padding: 0.85rem 1.8rem;
    font-size: 1.05rem;
    border-radius: 14px;
}

.ph-button--ghost {
    background: transparent;
    color: var(--ph-primary);
    border: 2px solid rgba(11, 61, 145, 0.28);
    box-shadow: none;
}

.ph-button--ghost:hover,
.ph-button--ghost:focus {
    background: rgba(11, 61, 145, 0.08);
    color: var(--ph-primary-dark);
    border-color: rgba(11, 61, 145, 0.42);
}

.ph-button--sm {
    padding: 0.45rem 1rem;
    font-size: 0.9rem;
}

.ph-chip {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 0.45rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    color: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ph-chip--accent {
    background: rgba(255, 255, 255, 0.15);
}

.ph-chip:hover,
.ph-chip:focus {
    background: rgba(255, 255, 255, 0.3);
}

.ph-kiosk__accessibility {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-weight: 600;
    color: var(--ph-text-muted);
}

.ph-kiosk__accessibility .ph-chip {
    border-color: rgba(11, 61, 145, 0.2);
    background: rgba(255, 255, 255, 0.7);
    color: var(--ph-primary);
}

.ph-kiosk__confirmation {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    padding: 1.5rem;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(67, 216, 201, 0.16), rgba(11, 61, 145, 0.12));
    border: 1px solid rgba(67, 216, 201, 0.35);
}

.ph-kiosk__ticket h2 {
    margin: 0;
    font-size: 1.5rem;
}

.ph-kiosk__ticket h2 span {
    font-size: 2.4rem;
    margin-left: 0.35rem;
}

.ph-kiosk__note {
    margin: 0.75rem 0 0;
    color: var(--ph-text-muted);
    font-size: 0.95rem;
}

.ph-kiosk__qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.ph-kiosk__qr-placeholder {
    width: 140px;
    height: 140px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.8);
    border: 2px dashed rgba(11, 61, 145, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--ph-text-muted);
    letter-spacing: 0.1em;
}

.ph-alert--error {
    border-color: rgba(214, 21, 57, 0.22);
    background: rgba(214, 21, 57, 0.12);
    color: #7d1128;
}

.ph-alert--success {
    border-color: rgba(67, 216, 201, 0.32);
    background: rgba(67, 216, 201, 0.18);
    color: var(--ph-primary);
}

@media (max-width: 768px) {
    .ph-kiosk-header {
        flex-direction: column;
        align-items: stretch;
    }

    .ph-kiosk-header__controls {
        justify-content: space-between;
    }

    .ph-kiosk__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .ph-button--lg {
        width: 100%;
        text-align: center;
    }
}

.ph-card {
    background: linear-gradient(145deg, var(--ph-surface) 0%, var(--ph-surface-alt) 100%);
    border: 1px solid var(--ph-border);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: var(--ph-shadow);
    overflow: hidden;
    position: relative;
}

.ph-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(67, 216, 201, 0.08), transparent 55%);
    pointer-events: none;
}

.ph-card header {
    margin-bottom: 1rem;
}

.ph-auth {
    width: min(100%, 440px);
    margin: 0 auto;
}

.ph-form-card {
    margin: 0 auto;
    margin: 0 auto;
}

.ph-auth form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ph-auth__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

@media (max-width: 520px) {
    .ph-auth__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .ph-auth__actions .ph-button {
        width: 100%;
    }
}

.ph-auth header h2 {
    margin: 0 0 0.35rem;
    font-size: 1.75rem;
    letter-spacing: -0.01em;
}

.ph-auth header p {
    margin: 0;
    font-size: 0.95rem;
}

.ph-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ph-form .form-group,
.ph-form .mb-3,
.ph-form .form-floating {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.ph-form label {
    font-weight: 600;
    color: var(--ph-text);
}

.ph-form input[type="text"],
.ph-form input[type="password"],
.ph-form input[type="email"],
.ph-form input[type="number"],
.ph-form input[type="tel"],
.ph-form input[type="search"],
.ph-form select,
.ph-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(11, 61, 145, 0.2);
    background: rgba(255, 255, 255, 0.92);
    color: var(--ph-text);
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    box-shadow: inset 0 1px 2px rgba(11, 61, 145, 0.08);
}

.ph-form input[type="text"]::placeholder,
.ph-form input[type="password"]::placeholder,
.ph-form input[type="email"]::placeholder,
.ph-form input[type="number"]::placeholder,
.ph-form input[type="tel"]::placeholder,
.ph-form input[type="search"]::placeholder,
.ph-form textarea::placeholder {
    color: rgba(23, 32, 51, 0.5);
}

.ph-form input[type="text"]:focus,
.ph-form input[type="password"]:focus,
.ph-form input[type="email"]:focus,
.ph-form input[type="number"]:focus,
.ph-form input[type="tel"]:focus,
.ph-form input[type="search"]:focus,
.ph-form select:focus,
.ph-form textarea:focus {
    outline: none;
    border-color: var(--ph-accent-dark);
    box-shadow: 0 0 0 3px rgba(67, 216, 201, 0.25);
    background-color: var(--ph-surface);
}

.ph-form select.ph-select--multiple {
    min-height: 8.5rem;
}

.ph-quick-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0 0 1rem;
}

.ph-dashboard-grid {
    display: grid;
    gap: clamp(1.5rem, 4vw, 2rem);
}

@media (min-width: 992px) {
    .ph-dashboard-grid {
        grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
        align-items: start;
    }
}

.ph-dashboard-main {
    display: grid;
    gap: clamp(1.25rem, 3vw, 1.75rem);
}

.ph-dashboard-header {
    display: grid;
    gap: 0.4rem;
}

.ph-dashboard-header h2 {
    margin: 0;
    font-size: clamp(1.75rem, 1.3rem + 1vw, 2.2rem);
}

.ph-dashboard-metrics {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.ph-dashboard-metric {
    padding: 1.1rem 1.2rem;
    border-radius: 14px;
    background: linear-gradient(140deg, rgba(67, 216, 201, 0.18), rgba(11, 61, 145, 0.08));
    border: 1px solid rgba(11, 61, 145, 0.12);
    box-shadow: 0 18px 35px rgba(11, 61, 145, 0.08);
    display: grid;
    gap: 0.35rem;
}

.ph-dashboard-metric__value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--ph-primary);
}

.ph-dashboard-metric__label {
    font-size: 0.95rem;
    color: var(--ph-text-muted);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.ph-dashboard-content {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .ph-dashboard-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.ph-dashboard-section {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    border: 1px solid rgba(11, 61, 145, 0.1);
    padding: 1.25rem 1.35rem;
    box-shadow: 0 16px 30px rgba(11, 61, 145, 0.06);
    display: grid;
    gap: 0.75rem;
}

.ph-dashboard-section h3 {
    margin: 0;
    font-size: 1.25rem;
}

.ph-dashboard-checklist {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.6rem;
}

.ph-dashboard-checklist li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--ph-text-muted);
    font-weight: 500;
}

.ph-dashboard-checklist li::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: 0.05rem;
    color: var(--ph-accent-dark);
    font-size: 0.9rem;
}

.ph-dashboard-highlight {
    background: linear-gradient(135deg, rgba(67, 216, 201, 0.2), rgba(11, 61, 145, 0.1));
    border-radius: 14px;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(67, 216, 201, 0.22);
    color: var(--ph-text);
    font-size: 0.95rem;
}

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

.ph-dashboard-actions header h3 {
    margin: 0;
}

.ph-action-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 1rem;
}

.ph-action-list__item {
    display: grid;
    gap: 0.45rem;
}

.ph-action-list__description {
    margin: 0;
    font-size: 0.9rem;
    color: var(--ph-text-muted);
}

.ph-teller-branches {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ph-teller-branches__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.ph-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(11, 61, 145, 0.12);
    color: var(--ph-primary);
}

.ph-badge--accent {
    background: rgba(67, 216, 201, 0.2);
    color: #0f766e;
}

.ph-teller-branches__form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ph-teller-branches__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.ph-teller-board {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ph-teller-header {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.ph-teller-header__identity h2 {
    margin: 0;
}

.ph-teller-header__meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.ph-teller-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ph-text-muted);
}

.ph-status-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.9rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
}

.ph-status-tag--available {
    background: rgba(51, 168, 103, 0.15);
    color: #0c5e33;
}

.ph-status-tag--break {
    background: rgba(244, 143, 46, 0.2);
    color: #92400e;
}

.ph-teller-header-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
    border: 1px dashed var(--ph-border);
    border-radius: 16px;
    padding: 1rem;
    background: rgba(11, 61, 145, 0.03);
}

.ph-teller-header-form__row {
    display: flex;
    flex: 1;
    gap: 1rem;
    align-items: flex-end;
}

.ph-teller-header-form__row .ph-form__field {
    flex: 1;
    margin-bottom: 0;
}

.ph-teller-counter-input {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    max-width: 420px;
}

.ph-teller-counter-input .ph-input {
    flex: 1;
}

.ph-teller-header-form__save {
    margin-top: 0;
    white-space: nowrap;
}

.ph-teller-break-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.ph-teller-search {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ph-teller-search__controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.ph-teller-search input[type="search"] {
    flex: 1;
    min-width: 220px;
}

.ph-teller-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 0.75fr;
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .ph-teller-grid {
        grid-template-columns: 1fr;
    }
}

.ph-teller-column {
    background: rgba(11, 61, 145, 0.03);
    border-radius: 20px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ph-teller-queue__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ph-teller-queue__item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 14px;
    border: 1px solid var(--ph-border);
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ph-teller-queue__item.is-active a {
    border-color: var(--ph-accent);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
}

.ph-teller-queue__item a:hover,
.ph-teller-queue__item a:focus {
    border-color: var(--ph-primary);
}

.ph-teller-queue__number {
    font-size: 1.1rem;
    font-weight: 700;
    min-width: 72px;
}

.ph-teller-queue__meta {
    display: flex;
    flex-direction: column;
    font-size: 0.85rem;
    color: var(--ph-text-muted);
}

.ph-teller-detail__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin: 0;
}

.ph-teller-detail__list dt {
    margin: 0 0 0.25rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ph-text-muted);
}

.ph-teller-detail__list dd {
    margin: 0;
    font-weight: 600;
}

.ph-teller-history ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ph-teller-history li {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.75rem;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--ph-border);
    font-size: 0.9rem;
}

.ph-teller-history small {
    color: var(--ph-text-muted);
}

.ph-teller-actions__form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ph-teller-actions__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
}

.ph-teller-actions__upcoming {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--ph-border);
}

.ph-teller-actions__upcoming h4 {
    margin: 0 0 0.35rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ph-text-muted);
}

.ph-teller-actions__upcoming ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.9rem;
    color: var(--ph-text-muted);
}

.ph-teller-actions__upcoming li {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.ph-teller-hotkeys {
    margin: 0;
    font-size: 0.8rem;
    color: var(--ph-text-muted);
}

.ph-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.45);
    padding: 1.5rem;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.ph-modal.is-active {
    opacity: 1;
    pointer-events: auto;
}

.ph-modal__dialog {
    width: min(520px, 100%);
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(12, 31, 66, 0.2);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.ph-modal__backdrop {
    position: absolute;
    inset: 0;
}

.ph-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(11, 61, 145, 0.08);
}

.ph-modal__body {
    padding: 1.5rem;
    overflow-y: auto;
}

.ph-modal__footer {
    position: sticky;
    bottom: 0;
    padding: 1rem 1.5rem 1.5rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), #fff 80%);
    box-shadow: 0 -8px 16px rgba(15, 23, 42, 0.08);
}

.ph-modal__actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
}

.ph-modal__close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: var(--ph-text-muted);
}

.ph-modal-detail {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin: 0;
}

.ph-modal-detail dt {
    margin: 0;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--ph-text-muted);
}

.ph-modal-detail dd {
    margin: 0.1rem 0 0;
    font-weight: 600;
}

#teller-workspace {
    position: relative;
    transition: opacity 0.2s ease;
}

.ph-teller-workspace--loading {
    opacity: 0.6;
    pointer-events: none;
}

.ph-form .form-text,
.ph-form .help-block {
    font-size: 0.85rem;
    color: var(--ph-text-muted);
}

.ph-form .errorlist {
    margin: 0;
    padding: 0.6rem 0.75rem;
    list-style: none;
    border-radius: 10px;
    background: rgba(214, 21, 57, 0.12);
    color: #a4163a;
    font-size: 0.85rem;
}

.ph-form__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.ph-panel-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 992px) {
    .ph-panel-grid {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr);
        align-items: start;
    }
}
@media (min-width: 1280px) {
    .ph-panel-grid {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.65fr);
    }
}
    }
    }
}

.ph-panel-grid__primary,
.ph-panel-grid__secondary {
    position: relative;
}

.ph-panel-grid__primary {
    box-shadow: 0 18px 40px rgba(11, 61, 145, 0.08);
    border-radius: 18px;
}

.ph-table-card {
    background: var(--ph-surface);
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 18px 40px rgba(11, 61, 145, 0.12);
    border: 1px solid rgba(11, 61, 145, 0.08);
    position: relative;
    overflow: hidden;
}

.ph-table-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(67, 216, 201, 0.25), transparent 60%);
    pointer-events: none;
}

.ph-table-card__header {
    margin-bottom: 1rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.ph-table-card__header small {
    font-size: 0.8rem;
    color: var(--ph-text-muted);
}

.ph-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(11, 61, 145, 0.15);
    border-radius: 999px;
    padding: 0.35rem 0.9rem 0.35rem 0.75rem;
    box-shadow: inset 0 1px 3px rgba(11, 61, 145, 0.08);
    position: relative;
    z-index: 1;
}

.ph-filter__icon {
    width: 1rem;
    height: 1rem;
    fill: var(--ph-text-muted);
    flex-shrink: 0;
}

.ph-filter__input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.95rem;
    min-width: 14rem;
    color: var(--ph-text);
}

.ph-filter__input::placeholder {
    color: rgba(23, 32, 51, 0.55);
}

.ph-filter__input:focus {
    outline: none;
}

.ph-table__actions-header {
    text-align: right;
    width: 8rem;
    white-space: nowrap;
}

.ph-table__actions {
    text-align: right;
}

.ph-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1px solid rgba(11, 61, 145, 0.18);
    background: rgba(11, 61, 145, 0.08);
    color: var(--ph-primary);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    position: relative;
}

.ph-icon-button svg {
    width: 1.15rem;
    height: 1.15rem;
    fill: currentColor;
}

.ph-icon-button:hover,
.ph-icon-button:focus {
    background: var(--ph-primary);
    color: var(--ph-text-inverse);
    box-shadow: 0 10px 20px rgba(11, 61, 145, 0.25);
    transform: translateY(-1px);
}

.ph-icon-button::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 0.65rem);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(23, 32, 51, 0.92);
    color: #fff;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    font-size: 0.75rem;
    line-height: 1;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    box-shadow: 0 8px 16px rgba(11, 61, 145, 0.2);
}

.ph-icon-button:hover::after,
.ph-icon-button:focus::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.ph-button--tight {
    padding: 0.35rem 0.9rem;
}

.ph-breadcrumb {
    margin-bottom: 1.25rem;
}

.ph-breadcrumb__link {
    color: var(--ph-text-muted);
    font-weight: 600;
}

.ph-breadcrumb__link:hover,
.ph-breadcrumb__link:focus {
    color: var(--ph-primary);
}

.ph-manage-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 1fr);
}

.ph-manage {
    width: min(100%, 960px);
    margin: 0 auto;
}

@media (min-width: 768px) {
    .ph-manage-grid {
        justify-items: stretch;
    }
}

.ph-manage-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(11, 61, 145, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 16px 36px rgba(11, 61, 145, 0.12);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.ph-manage-card::before {
    content: "";
    position: absolute;
    inset: -40% 60% 40% -20%;
    background: radial-gradient(circle, rgba(67, 216, 201, 0.18), transparent 65%);
    pointer-events: none;
}

.ph-manage-card > * {
    position: relative;
    z-index: 1;
}

.ph-main--error {
    min-height: 80vh;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.ph-error {
    width: min(100%, 760px);
    margin: 0 auto;
    padding: clamp(2rem, 4vh, 3rem);
}

.ph-error__card {
    position: relative;
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.95), rgba(67, 216, 201, 0.15));
    border: 1px solid rgba(11, 61, 145, 0.1);
    border-radius: 24px;
    padding: clamp(2rem, 5vw, 3rem);
    box-shadow: 0 24px 60px rgba(11, 61, 145, 0.18);
    display: grid;
    gap: clamp(1.25rem, 3vh, 1.75rem);
    overflow: hidden;
}

.ph-error__card::before {
    content: "";
    position: absolute;
    inset: -40% -60% 40% 20%;
    background: radial-gradient(circle, rgba(11, 61, 145, 0.18), transparent 75%);
    pointer-events: none;
}

.ph-error__illustration {
    position: relative;
    display: grid;
    place-items: center;
    gap: 1rem;
}

.ph-error__shield {
    position: relative;
    width: clamp(88px, 12vw, 120px);
    aspect-ratio: 1;
    border-radius: 32% 32% 40% 40%;
    background: linear-gradient(160deg, rgba(11, 61, 145, 0.9), rgba(67, 216, 201, 0.65));
    display: grid;
    place-items: center;
    color: var(--ph-text-inverse);
    box-shadow: 0 20px 40px rgba(11, 61, 145, 0.24);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.ph-error__shield-icon {
    font-size: clamp(2.2rem, 2.4vw, 3rem);
    font-weight: 700;
    letter-spacing: 0.1rem;
}

.ph-error__halo {
    width: clamp(200px, 30vw, 280px);
    height: clamp(200px, 30vw, 280px);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(67, 216, 201, 0.25), transparent 70%);
    filter: blur(0);
    position: absolute;
    z-index: -1;
    opacity: 0.75;
}

.ph-error__header h1 {
    margin: 0;
    font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.6rem);
    color: var(--ph-primary);
}

.ph-error__header p {
    margin: 0.75rem 0 0;
    font-size: 1rem;
}

.ph-error__actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    justify-items: center;
}

.ph-error__footer {
    font-size: 0.9rem;
    color: var(--ph-text-muted);
}

.ph-button[aria-disabled="true"] {
    opacity: 0.65;
    pointer-events: none;
}

.ph-manage-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.ph-manage-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(11, 61, 145, 0.1);
    border-radius: 999px;
    padding: 0.25rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ph-primary);
}

.ph-form--stacked .ph-form__field {
    margin-bottom: 1rem;
}

.ph-service-form {
    display: grid;
    gap: 1.25rem;
}

.ph-service-grid {
    display: grid;
    gap: 1.1rem;
}

@media (min-width: 768px) {
    .ph-service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.ph-form__field--span {
    grid-column: 1 / -1;
}

.ph-service-inline {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    grid-column: 1 / -1;
}

.ph-form__field--checkbox label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.ph-form__field--checkbox input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--ph-primary);
}

.ph-tabs {
    display: grid;
    gap: 1.5rem;
    width: 100%;
}

.ph-tabs__nav {
    display: inline-flex;
    gap: 0.5rem;
    background: rgba(11, 61, 145, 0.06);
    border-radius: 999px;
    padding: 0.35rem;
    width: fit-content;
}

.ph-tabs__tab {
    border: none;
    background: transparent;
    color: var(--ph-text-muted);
    font-weight: 600;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.ph-tabs__tab:hover,
.ph-tabs__tab:focus {
    background: rgba(11, 61, 145, 0.08);
    color: var(--ph-primary);
}

.ph-tabs__tab.is-active {
    background: var(--ph-primary);
    color: var(--ph-text-inverse);
    box-shadow: 0 10px 20px rgba(11, 61, 145, 0.2);
}

.ph-tabs__panels {
    display: grid;
    gap: 1.5rem;
    width: 100%;
}

.ph-tabs__panel {
    display: none;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.ph-tabs__panel.is-active {
    display: grid;
    gap: 1.5rem;
    width: 100%;
}

.ph-manage-section {
    display: grid;
    gap: 1.25rem;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(11, 61, 145, 0.08);
    border-radius: 16px;
    padding: 1.35rem;
    box-shadow: 0 14px 30px rgba(11, 61, 145, 0.08);
    width: 100%;
}

.ph-service-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
}

.ph-branch-search,
.ph-service-search {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.ph-branch-search input[type="search"],
.ph-service-search input[type="search"] {
    padding: 0.7rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(11, 61, 145, 0.18);
    background: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ph-branch-search input[type="search"]:focus,
.ph-service-search input[type="search"]:focus {
    outline: none;
    border-color: var(--ph-accent-dark);
    box-shadow: 0 0 0 3px rgba(67, 216, 201, 0.25);
}

.ph-branch-empty {
    text-align: center;
    margin-top: 1.25rem;
}

.ph-service-empty {
    text-align: center;
    margin-top: 1rem;
}

.ph-service-inventory {
    margin-top: 1.5rem;
    display: grid;
    gap: 1rem;
}

.ph-service-inventory__item {
    border: 1px solid rgba(11, 61, 145, 0.12);
    border-radius: 12px;
    padding: 1rem 1.1rem;
    background: rgba(255, 255, 255, 0.95);
}

.ph-service-edit {
    margin-top: 1rem;
}

.ph-service-edit__details {
    border: 1px solid rgba(11, 61, 145, 0.12);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    background: rgba(11, 61, 145, 0.04);
    transition: box-shadow 0.15s ease;
}

.ph-service-edit__details[open] {
    background: rgba(67, 216, 201, 0.16);
    box-shadow: 0 8px 18px rgba(11, 61, 145, 0.1);
}

.ph-service-edit__details > summary {
    margin: 0 0 0.75rem;
}

.ph-service-edit__fields {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.ph-form__actions--inline {
    justify-content: flex-end;
}

    box-shadow: 0 8px 18px rgba(11, 61, 145, 0.08);
}

.ph-service-inventory__item header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.ph-service-status {
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.ph-service-status.is-active {
    background: rgba(67, 216, 201, 0.18);
    color: var(--ph-primary);
}

.ph-service-status.is-inactive {
    background: rgba(23, 32, 51, 0.1);
    color: var(--ph-text-muted);
}

.ph-service-inventory__item dl {
    margin: 0;
    display: grid;
    gap: 0.5rem;
}

.ph-service-inventory__item dt {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ph-text-muted);
}

.ph-service-inventory__item dd {
    margin: 0.1rem 0 0;
}

.ph-service-inventory__description {
    margin-top: 0.5rem;
}

.ph-branch-list {
    display: grid;
    gap: 1.25rem;
}

.ph-branch-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(11, 61, 145, 0.08);
    border-radius: 14px;
    padding: 1.1rem;
    box-shadow: 0 12px 28px rgba(11, 61, 145, 0.1);
}

.ph-branch-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.9rem;
}

.ph-branch-card__title {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--ph-text-muted);
}

.ph-branch-card__field label {
    font-weight: 600;
    margin-bottom: 0.4rem;
    display: inline-block;
}

.ph-accordion {
    margin-top: 1rem;
    border: 1px solid rgba(11, 61, 145, 0.12);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    background: rgba(11, 61, 145, 0.03);
}

.ph-accordion summary {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    color: var(--ph-primary);
}

.ph-accordion[open] {
    background: rgba(67, 216, 201, 0.12);
}

.ph-accordion__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(11, 61, 145, 0.15);
    color: var(--ph-primary);
    border-radius: 999px;
    padding: 0.1rem 0.6rem;
    font-size: 0.75rem;
    margin-left: 0.75rem;
}

.ph-service-list {
    margin: 0.75rem 0 0;
    padding-left: 1.25rem;
    display: grid;
    gap: 0.5rem;
}

.ph-service-list__description {
    margin: 0.25rem 0 0;
    color: var(--ph-text-muted);
}

.ph-service-list__empty {
    margin: 0.75rem 0 0;
    color: var(--ph-text-muted);
}

.ph-service-list small {
    margin-left: 0.25rem;
}

.ph-aside-title {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
}

.ph-table-wrapper {
    max-height: 24rem;
    overflow: auto;
    border-radius: 12px;
    border: 1px solid rgba(11, 61, 145, 0.12);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(6px);
}

.ph-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.93rem;
}

.ph-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
}

.ph-table th,
.ph-table td {
    padding: 0.85rem 0.9rem;
    text-align: left;
    border-bottom: 1px solid rgba(11, 61, 145, 0.08);
    vertical-align: top;
    background: rgba(255, 255, 255, 0.95);
}

.ph-table th {
    font-weight: 600;
    color: var(--ph-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.75rem;
    background: linear-gradient(135deg, rgba(11, 61, 145, 0.08), rgba(67, 216, 201, 0.12));
}

.ph-table tbody tr:nth-child(even) td {
    background: rgba(11, 61, 145, 0.02);
}

.ph-table tbody tr:hover td {
    background: rgba(67, 216, 201, 0.16);
}

.ph-table code {
    background: rgba(11, 61, 145, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 6px;
    font-size: 0.82rem;
    letter-spacing: 0.05em;
}

.ph-table td:nth-child(4),
.ph-table th:nth-child(4) {
    min-width: 10rem;
}

.ph-table td:nth-child(4) {
    word-break: break-word;
}

.ph-table a {
    color: var(--ph-primary);
    font-weight: 600;
    word-break: break-all;
}

.ph-table a:hover,
.ph-table a:focus {
    color: var(--ph-primary-dark);
    text-decoration: underline;
}

.ph-table__empty {
    margin: 0;
    color: var(--ph-text-muted);
}

.ph-reports__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.ph-reports__filter {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.ph-reports__filter label {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--ph-text-muted);
}

.ph-messages {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.ph-link-muted {
    color: var(--ph-text-muted);
    text-decoration: none;
    font-weight: 500;
}

.ph-link-muted:hover,
.ph-link-muted:focus {
    color: var(--ph-primary);
    text-decoration: underline;
}

.ph-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .ph-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.ph-list {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--ph-text-muted);
}

.ph-list--ordered {
    list-style: decimal;
}

.ph-alert {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    border: 1px solid rgba(67, 216, 201, 0.35);
    background: linear-gradient(135deg, rgba(67, 216, 201, 0.2), rgba(11, 61, 145, 0.1));
    color: var(--ph-text);
}

.ph-alert strong {
    display: block;
    margin-bottom: 0.5rem;
}

.ph-deflist {
    margin: 1rem 0 0;
    display: grid;
    grid-template-columns: minmax(0, 160px) 1fr;
    gap: 0.25rem 1rem;
}

.ph-deflist dt {
    font-weight: 600;
    color: var(--ph-text-muted);
}

.ph-deflist dd {
    margin: 0;
}

.ph-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid rgba(11, 61, 145, 0.2);
    padding: 0.65rem 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ph-button[disabled],
.ph-button--disabled {
    cursor: not-allowed;
    opacity: 0.55;
    box-shadow: none;
    pointer-events: none;
}

.ph-button--disabled {
    border-color: rgba(11, 61, 145, 0.18);
}

.ph-button--primary {
    background-color: var(--ph-primary);
    border-color: var(--ph-primary-dark);
    color: var(--ph-text-inverse);
    box-shadow: 0 10px 24px rgba(11, 61, 145, 0.26);
}

.ph-button--primary:hover,
.ph-button--primary:focus {
    background-color: var(--ph-primary-dark);
    border-color: var(--ph-primary-dark);
    color: var(--ph-text-inverse);
}

.ph-button--full {
    width: 100%;
    justify-content: center;
}

.ph-button--danger {
    background: rgba(220, 38, 38, 0.1);
    border-color: rgba(220, 38, 38, 0.35);
    color: #b91c1c;
}

.ph-button--danger:hover,
.ph-button--danger:focus {
    background: rgba(220, 38, 38, 0.16);
    border-color: rgba(220, 38, 38, 0.45);
}

.ph-button--accent {
    background: var(--ph-accent);
    border-color: var(--ph-accent-dark);
    color: var(--ph-text);
}

.ph-button--accent:hover,
.ph-button--accent:focus {
    background: var(--ph-accent-dark);
    color: var(--ph-text-inverse);
}

.ph-text-muted {
    color: var(--ph-text-muted);
}

.ph-body--mobile-join {
    background:
        radial-gradient(circle at top, rgba(67, 216, 201, 0.18), transparent 55%),
        linear-gradient(180deg, rgba(11, 61, 145, 0.08), rgba(11, 61, 145, 0.18));
}

.ph-main--mobile {
    max-width: min(480px, 95vw);
    width: 100%;
    margin: 0 auto;
    padding: clamp(1.5rem, 5vh, 3rem) clamp(1rem, 5vw, 2rem);
}

.ph-mobile {
    display: grid;
    gap: 1.5rem;
}

.ph-mobile__header {
    display: grid;
    gap: 1rem;
    text-align: center;
    padding: 1.25rem 1.5rem;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(11, 61, 145, 0.9), rgba(67, 216, 201, 0.85));
    color: var(--ph-primary-contrast);
    box-shadow: 0 20px 45px rgba(11, 61, 145, 0.2);
}

.ph-mobile__badge {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.ph-mobile__logo {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    align-items: center;
}

.ph-mobile__logo-img {
    max-height: 56px;
    width: auto;
    display: block;
}

.ph-mobile__logo-mark {
    font-weight: 700;
    letter-spacing: 0.15em;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}

.ph-mobile__logo-text {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--ph-primary-contrast);
}

.ph-mobile__tagline {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.85;
}

.ph-mobile__stepper {
    list-style: none;
    display: flex;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    justify-content: center;
    flex-wrap: wrap;
}

.ph-mobile-step {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    border: 1px solid rgba(255, 255, 255, 0.22);
    transition: transform 0.15s ease, background-color 0.2s ease;
}

.ph-mobile-step:hover {
    transform: translateY(-2px);
}

.ph-mobile-step__badge {
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.2);
}

.ph-mobile-step__label {
    white-space: nowrap;
}

.ph-mobile-step--done {
    background: rgba(255, 255, 255, 0.25);
}

.ph-mobile-step--done .ph-mobile-step__badge {
    background: var(--ph-primary-contrast);
    color: var(--ph-primary);
}

.ph-mobile-step--current {
    background: rgba(67, 216, 201, 0.9);
    color: var(--ph-text);
    border-color: rgba(255, 255, 255, 0.4);
}

.ph-mobile-step--current .ph-mobile-step__badge {
    background: var(--ph-text);
    color: var(--ph-accent);
}

.ph-mobile-step--upcoming {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.75);
}

.ph-mobile__messages {
    display: grid;
    gap: 0.75rem;
}

.ph-mobile-card {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(11, 61, 145, 0.12);
    border-radius: 18px;
    padding: 1.25rem;
    box-shadow: 0 20px 45px rgba(11, 61, 145, 0.15);
    display: grid;
    gap: 1rem;
    backdrop-filter: blur(10px);
}

.ph-mobile-card__heading {
    display: grid;
    gap: 0.35rem;
    text-align: left;
}

.ph-mobile-card__heading h2,
.ph-mobile-card__heading h3 {
    margin: 0;
    font-size: 1.2rem;
}

.ph-mobile-card__subtitle {
    margin: 0;
    font-size: 0.9rem;
    color: var(--ph-text-muted);
}

.ph-mobile-card--summary {
    gap: 0.75rem;
}

.ph-mobile-summary {
    margin: 0;
    display: grid;
    gap: 0.75rem;
}

.ph-mobile-summary div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.ph-mobile-summary dt {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ph-text-muted);
    margin: 0;
}

.ph-mobile-summary dd {
    font-weight: 600;
    margin: 0;
}

.ph-radio-list {
    display: grid;
    gap: 0.75rem;
}

.ph-radio-list__option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: rgba(11, 61, 145, 0.04);
    border-radius: 18px;
    border: 1px solid rgba(11, 61, 145, 0.12);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.ph-radio-list__option:hover,
.ph-radio-list__option:focus-within {
    border-color: rgba(11, 61, 145, 0.35);
    box-shadow: 0 10px 24px rgba(11, 61, 145, 0.12);
    background: rgba(11, 61, 145, 0.08);
}

.ph-radio-list__option:has(input[type="radio"]:checked) {
    border-color: rgba(11, 61, 145, 0.45);
    background: linear-gradient(135deg, rgba(11, 61, 145, 0.12), rgba(67, 216, 201, 0.16));
    box-shadow: 0 16px 32px rgba(11, 61, 145, 0.18);
    transform: translateY(-2px);
}

.ph-radio-list__option input[type="radio"] {
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
    accent-color: var(--ph-primary);
}

.ph-radio-list__content {
    display: grid;
    gap: 0.25rem;
    position: relative;
    z-index: 1;
}

.ph-radio-list__title {
    font-weight: 600;
    color: var(--ph-text);
}

.ph-radio-list__description {
    font-size: 0.85rem;
    color: var(--ph-text-muted);
}

.ph-radio-list__meta {
    font-size: 0.78rem;
    color: var(--ph-text-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ph-radio-list__option input[type="radio"]:checked + .ph-radio-list__content .ph-radio-list__title {
    color: var(--ph-primary);
}

.ph-mobile-toggles {
    border: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.ph-mobile-toggles legend {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.ph-mobile-toggle {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 500;
}

.ph-mobile-toggle input[type="checkbox"] {
    width: 1.2rem;
    height: 1.2rem;
    accent-color: var(--ph-primary);
}

.ph-mobile-card--ticket header {
    display: grid;
    gap: 0.35rem;
}

.ph-mobile-card--ticket {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(67, 216, 201, 0.16));
    border: 1px solid rgba(67, 216, 201, 0.35);
}

.ph-mobile-card--ticket h2 {
    margin: 0;
    font-size: 1.35rem;
}

.ph-mobile-card--ticket h2 span {
    color: var(--ph-primary);
}

.ph-mobile-ticket__meta {
    margin: 0;
    font-weight: 600;
    color: var(--ph-primary);
}

.ph-mobile-ticket__details {
    display: grid;
    gap: 0.35rem;
    margin: 0;
}

.ph-mobile-ticket__details strong {
    color: var(--ph-primary);
}

.ph-mobile-actions {
    display: grid;
    gap: 0.75rem;
}

.ph-mobile-actions .ph-button {
    width: 100%;
}

.ph-mobile-form-actions {
    display: grid;
    gap: 1.25rem;
}

.ph-mobile-form-actions .ph-button {
    width: 100%;
}

.ph-mobile-card--form .ph-button {
    width: 100%;
}

.ph-footer {
    margin-top: auto;
    padding: 1.5rem 0;
    background: linear-gradient(135deg, var(--ph-primary) 0%, #0f4fa5 55%, var(--ph-accent-dark) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    color: var(--ph-primary-contrast);
    box-shadow: 0 -10px 24px rgba(11, 61, 145, 0.2);
}
