:root {
    --phm-ink: #17324a;
    --phm-ink-soft: #567187;
    --phm-blue: #1f7ab6;
    --phm-blue-deep: #115c8d;
    --phm-blue-mist: #e7f4fb;
    --phm-green: #2f9b7a;
    --phm-green-soft: #dff4ec;
    --phm-surface: rgba(255, 255, 255, 0.92);
    --phm-surface-strong: #ffffff;
    --phm-border: rgba(54, 110, 143, 0.14);
    --phm-shadow: rgba(35, 91, 124, 0.12);
}

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin-bottom: 0;
    overflow-y: auto;
    background:
        radial-gradient(circle at top left, rgba(72, 171, 214, 0.18), transparent 28%),
        radial-gradient(circle at top right, rgba(72, 186, 142, 0.12), transparent 24%),
        linear-gradient(180deg, #f5fbff 0%, #edf7f6 48%, #f9fcff 100%);
    color: var(--phm-ink);
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem rgba(255, 255, 255, 0.95), 0 0 0 0.25rem rgba(31, 122, 182, 0.2);
    border-color: rgba(31, 122, 182, 0.45);
}

.phm-shell #page-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    backdrop-filter: blur(10px);
    background: rgba(248, 252, 255, 0.9);
    border-bottom: 1px solid rgba(54, 110, 143, 0.12);
    box-shadow: 0 12px 30px rgba(33, 96, 128, 0.08);
}

.phm-shell #page-header .dropdown-menu {
    z-index: 1035;
}

.phm-page-container {
    background: transparent;
}

.phm-shell #page-header .content-header {
    height: auto;
    min-height: 5rem;
}

/* Single-row layout: brand | nav | actions */
.phm-header-shell {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem 1.1rem;
}

.phm-header-brand {
    display: flex;
    align-items: center;
    min-width: 0;
}

.phm-header-nav {
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phm-mobile-nav-shell {
    display: flex;
    width: 100%;
    justify-content: flex-start;
}

.phm-mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 3rem;
    height: 3rem;
    min-height: auto;
    padding: 0;
    border-radius: 0.7rem;
    border: 1px solid rgba(54, 110, 143, 0.18);
    background: rgba(255, 255, 255, 0.85);
    color: var(--phm-ink);
    box-shadow: none;
}

.phm-mobile-nav-toggle > span { display: none; }

.phm-mobile-nav-toggle:hover,
.phm-mobile-nav-toggle:focus {
    background: #fff;
    border-color: rgba(31, 122, 182, 0.4);
    color: var(--phm-blue-deep);
}

.phm-mobile-nav-offcanvas {
    --bs-offcanvas-width: min(88vw, 22rem);
    height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(72, 171, 214, 0.16), transparent 28%),
        linear-gradient(180deg, #f7fcff 0%, #edf7f6 100%);
    color: var(--phm-ink);
}

.phm-mobile-nav-offcanvas .offcanvas-header {
    align-items: flex-start;
    padding: 1.2rem 1.2rem 1rem;
    border-bottom: 1px solid rgba(54, 110, 143, 0.12);
}

.phm-mobile-nav-offcanvas .offcanvas-body {
    overflow-y: auto;
    padding: 1rem 1.2rem 1.2rem;
}

.phm-mobile-nav-eyebrow {
    display: inline-block;
    margin-bottom: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--phm-blue-deep);
}

.phm-mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.65rem;
}

.phm-mobile-nav-group {
    display: grid;
    gap: 0.55rem;
}

.phm-mobile-nav-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    list-style: none;
    cursor: pointer;
    color: var(--phm-ink-soft);
    font-weight: 700;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(54, 110, 143, 0.12);
    transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.phm-mobile-nav-summary::-webkit-details-marker {
    display: none;
}

.phm-mobile-nav-summary-label {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.phm-mobile-nav-group[open] .phm-mobile-nav-summary,
.phm-mobile-nav-summary:hover,
.phm-mobile-nav-summary:focus {
    color: var(--phm-blue-deep);
    background: linear-gradient(135deg, rgba(31, 122, 182, 0.12), rgba(47, 155, 122, 0.14));
    border-color: rgba(31, 122, 182, 0.18);
    box-shadow: 0 14px 24px rgba(23, 50, 74, 0.08);
}

.phm-mobile-nav-group[open] .phm-mobile-nav-summary .phm-mobile-nav-caret {
    transform: rotate(180deg);
}

.phm-mobile-nav-summary .phm-mobile-nav-caret {
    transition: transform 0.18s ease;
    font-size: 0.75rem;
}

.phm-mobile-nav-child-list {
    list-style: none;
    margin: 0;
    padding: 0 0 0 0.9rem;
    display: grid;
    gap: 0.55rem;
}

.phm-mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    text-decoration: none;
    color: var(--phm-ink-soft);
    font-weight: 700;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(54, 110, 143, 0.12);
    transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.phm-mobile-nav-link:hover,
.phm-mobile-nav-link:focus,
.phm-mobile-nav-link.active {
    color: var(--phm-blue-deep);
    background: linear-gradient(135deg, rgba(31, 122, 182, 0.12), rgba(47, 155, 122, 0.14));
    border-color: rgba(31, 122, 182, 0.18);
    box-shadow: 0 14px 24px rgba(23, 50, 74, 0.08);
}

.phm-mobile-nav-link i {
    width: 1.1rem;
    text-align: center;
    color: inherit;
}

.phm-mobile-nav-child-link {
    padding-left: 1.1rem;
}

.phm-admin-nav-dropdown {
    min-width: 14rem;
    padding: 0.45rem;
    border-radius: 1rem;
    border: 1px solid rgba(54, 110, 143, 0.14);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 22px 40px rgba(23, 50, 74, 0.14);
    margin-top: 0.6rem;
}

.phm-admin-nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.8rem;
    border-radius: 0.7rem;
    color: var(--phm-ink-soft);
    font-weight: 600;
    font-size: 0.86rem;
    transition: color 0.18s ease, background 0.18s ease;
}

.phm-admin-nav-dropdown-item i {
    width: 1.1rem;
    text-align: center;
    opacity: 0.85;
}

.phm-admin-nav-dropdown-item:hover,
.phm-admin-nav-dropdown-item:focus,
.phm-admin-nav-dropdown-item.active {
    color: var(--phm-blue-deep);
    background: linear-gradient(135deg, rgba(31, 122, 182, 0.12), rgba(47, 155, 122, 0.14));
}

.phm-header-actions {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.5rem;
    justify-content: flex-end;
    flex: 0 0 auto;
}

.phm-header-actions > div,
#userDropdownContainer,
#notificationsDropdownContainer {
    min-width: 0;
    flex: 0 0 auto;
}

.phm-brand {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.7rem;
    min-width: 0;
    height: auto;
    max-width: none;
    text-align: left;
    padding: 0.2rem 0.4rem 0.2rem 0;
    border-radius: 0.7rem;
    transition: background 0.18s ease;
}

.phm-brand:hover {
    background: rgba(31, 122, 182, 0.05);
    color: var(--phm-ink);
}

.phm-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    min-width: auto;
    min-height: auto;
    aspect-ratio: 1 / 1;
    flex: 0 0 auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.phm-brand-mark svg {
    width: 100%;
    height: 100%;
    stroke: none;
    fill: currentColor;
}

.phm-brand-mark img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    display: block;
    object-fit: contain;
}

.phm-brand-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-width: 0;
    max-width: 100%;
    line-height: 1;
}

.phm-brand-title,
.phm-brand-tagline {
    display: block;
}

.phm-brand-title {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: var(--phm-ink);
    line-height: 1;
    text-transform: none;
    font-family: Georgia, "Times New Roman", serif;
    white-space: nowrap;
}

.phm-brand-title-line {
    display: inline;
}

.phm-brand-title-line + .phm-brand-title-line::before {
    content: " ";
}

.phm-brand-tagline {
    color: var(--phm-ink-soft);
    font-size: 0.7rem;
    line-height: 1.3;
    margin-top: 0.25rem;
    white-space: nowrap;
}

.phm-header-search {
    position: relative;
    width: 14rem;
    flex: 0 0 auto;
}

.phm-header-search .input-group {
    display: block;
    min-width: 0;
    width: 100%;
    position: relative;
}

.phm-header-search .form-control,
.phm-header-search .form-control.form-control-alt {
    width: 100%;
    height: 3rem;
    min-height: 3rem;
    padding: 0 0.9rem 0 2.4rem;
    border-radius: 999px;
    border: 1px solid rgba(54, 110, 143, 0.2);
    background: rgba(255, 255, 255, 0.85);
    color: var(--phm-ink);
    font-size: 0.85rem;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.phm-header-search .form-control::placeholder,
.phm-header-search-input::placeholder {
    color: var(--phm-ink-soft);
}

.phm-header-search .form-control:focus {
    outline: none;
    background: #fff;
    border-color: rgba(31, 122, 182, 0.5);
    box-shadow: 0 0 0 4px rgba(31, 122, 182, 0.12);
}

/* The submit button collapses into a magnifier glyph anchored inside the input. */
.phm-header-search .input-group-text,
.phm-header-search button.input-group-text {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--phm-blue);
    background: transparent;
    border: 0;
    padding: 0;
    min-width: auto;
    height: auto;
    pointer-events: none;
    z-index: 5;
    box-shadow: none;
}

.phm-header-search-input,
.phm-header-search-input::placeholder {
    font-size: 0.85rem;
}

/* Magnifier-only button rendered at narrow widths in place of the input. */
.phm-header-search-icon-btn {
    display: none;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 1px solid rgba(54, 110, 143, 0.18);
    background: rgba(255, 255, 255, 0.85);
    color: var(--phm-ink);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.phm-header-search-icon-btn:hover,
.phm-header-search-icon-btn:focus {
    background: #fff;
    border-color: rgba(31, 122, 182, 0.4);
    color: var(--phm-blue-deep);
    transform: translateY(-1px);
}

.phm-header-nav .nav-main-horizontal {
    margin-bottom: 0;
    justify-content: center;
    align-items: center;
    row-gap: 0.35rem;
    display: flex;
    gap: 0.15rem;
    flex-wrap: nowrap;
    padding: 0;
    list-style: none;
}

.phm-header-nav > * {
    width: max-content;
    max-width: 100%;
}

.phm-shell .nav-main-horizontal .nav-main-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    color: var(--phm-ink-soft);
    font-weight: 600;
    font-size: 0.92rem;
    white-space: nowrap;
    text-decoration: none;
    transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.phm-shell .nav-main-horizontal .nav-main-link:hover {
    color: var(--phm-blue-deep);
    background: rgba(31, 122, 182, 0.08);
}

.phm-shell .nav-main-horizontal .nav-main-link.active {
    color: #fff;
    background: linear-gradient(135deg, var(--phm-blue), var(--phm-green));
    box-shadow: 0 8px 18px rgba(31, 122, 182, 0.22);
}

.phm-shell .nav-main-horizontal .nav-main-link-icon,
.phm-shell .nav-main-horizontal .nav-main-link-name {
    color: inherit;
}

.phm-shell .nav-main-horizontal .nav-main-link-icon {
    font-size: 0.88rem;
    opacity: 0.85;
}

.phm-shell .nav-main-horizontal .nav-main-link.active .nav-main-link-icon {
    opacity: 1;
}

.phm-shell .nav-main-horizontal .nav-main-link.dropdown-toggle::after {
    border: 0;
    margin-left: 0.1rem;
    font-size: 0.6rem;
    width: auto;
    height: auto;
    vertical-align: baseline;
    transform: none;
    opacity: 0.65;
}

.phm-shell .btn-primary {
    background: linear-gradient(135deg, var(--phm-blue), var(--phm-green));
    border-color: transparent;
    box-shadow: 0 12px 24px rgba(31, 122, 182, 0.18);
}

.phm-shell .btn-primary:hover,
.phm-shell .btn-primary:focus {
    background: linear-gradient(135deg, var(--phm-blue-deep), #257e62);
    border-color: transparent;
}

.phm-shell .btn-alt-primary,
.phm-shell .btn-outline-primary:hover {
    background: rgba(31, 122, 182, 0.12);
    border-color: rgba(31, 122, 182, 0.18);
    color: var(--phm-blue-deep);
}

.phm-shell .btn-outline-primary {
    color: var(--phm-blue-deep);
    border-color: rgba(31, 122, 182, 0.24);
}

/* === Notifications bell === */
.phm-header-bell {
    position: relative;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 1px solid rgba(54, 110, 143, 0.18);
    background: rgba(255, 255, 255, 0.85);
    color: var(--phm-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.phm-header-bell:hover,
.phm-header-bell:focus {
    background: #fff;
    border-color: rgba(31, 122, 182, 0.4);
    color: var(--phm-blue-deep);
    transform: translateY(-1px);
}

.phm-header-bell-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 1.1rem;
    height: 1.1rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff6b6b, #d6385c);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    line-height: 1;
}

/* === Guest CTAs (ghost Sign In + gradient Get Started) === */
.phm-header-cta-ghost,
.phm-header-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    height: 3rem;
    padding: 0 1.25rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.phm-header-cta-ghost {
    color: var(--phm-blue-deep);
    background: transparent;
    border: 1px solid rgba(31, 122, 182, 0.28);
}

.phm-header-cta-ghost:hover,
.phm-header-cta-ghost:focus {
    background: rgba(31, 122, 182, 0.08);
    color: var(--phm-blue-deep);
}

.phm-header-cta-primary {
    color: #fff;
    border: 0;
    background: linear-gradient(135deg, var(--phm-blue), var(--phm-green));
    box-shadow: 0 12px 22px rgba(31, 122, 182, 0.22);
}

.phm-header-cta-primary:hover,
.phm-header-cta-primary:focus {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(31, 122, 182, 0.28);
    color: #fff;
}

.phm-footer {
    background: linear-gradient(180deg, rgba(247, 252, 255, 0.95), rgba(235, 247, 244, 0.95));
    border-top: 1px solid rgba(54, 110, 143, 0.12);
}

.phm-footer-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    flex-wrap: wrap;
}

.phm-footer-top-copy {
    min-width: 0;
    flex: 1 1 34rem;
}

.phm-footer-top-copy h3 {
    font-size: 1.15rem;
    line-height: 1.2;
}

.phm-footer-top-copy p {
    font-size: 0.9rem;
}

.phm-footer-shell {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem 1.25rem;
    align-items: start;
}

.phm-footer-column {
    min-width: 0;
}

.phm-footer-column ul {
    display: grid;
    gap: 0.4rem;
}

.phm-footer-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.15rem;
}

.phm-footer-note {
    padding: 0.85rem 0.95rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.52);
    border: 1px solid rgba(54, 110, 143, 0.12);
}

.phm-footer .phm-section-kicker {
    margin-bottom: 0.45rem;
    font-size: 0.68rem;
}

.phm-footer h3,
.phm-footer .h1,
.phm-footer .h2,
.phm-footer .h3,
.phm-footer .h4,
.phm-footer .h5,
.phm-footer .h6 {
    color: var(--phm-ink);
    font-weight: 700;
    font-size: 1rem;
}

.phm-footer p,
.phm-footer li,
.phm-footer .fs-sm,
.phm-footer .text-muted,
.phm-footer .text-muted a {
    color: var(--phm-ink-soft) !important;
    font-size: 0.88rem;
}

.phm-footer a {
    color: var(--phm-blue-deep);
    text-decoration: none;
}

.phm-footer a:hover,
.phm-footer a:focus {
    color: var(--phm-green);
    text-decoration: underline;
}

.phm-footer .border-bottom {
    border-color: rgba(54, 110, 143, 0.14) !important;
}

.phm-footer-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.phm-footer-pills span {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(31, 122, 182, 0.08);
    color: var(--phm-blue-deep);
    font-size: 0.76rem;
    font-weight: 600;
}

.phm-contact-page,
.phm-contact-hero-copy,
.phm-contact-hero-panel,
.phm-contact-route-stack,
.phm-contact-checklist {
    display: grid;
    gap: 1rem;
}

.phm-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 1rem;
}

.phm-contact-card {
    display: grid;
    gap: 0.75rem;
    align-content: start;
    min-width: 0;
    container-type: inline-size;
}

.phm-contact-card h3,
.phm-contact-card p {
    overflow-wrap: anywhere;
}

.phm-contact-card a {
    font-weight: 700;
    display: inline-block;
    max-width: 100%;
    font-size: clamp(0.72rem, 4.2cqw, 0.88rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--phm-blue-deep);
    text-decoration: none;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
}

.phm-contact-card a:hover,
.phm-contact-card a:focus {
    text-decoration: underline;
}

.phm-contact-route-stack article,
.phm-contact-checklist article {
    padding: 1rem 1.05rem;
    border-radius: 1.15rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.phm-contact-route-stack strong,
.phm-contact-checklist strong {
    display: block;
    margin-bottom: 0.35rem;
    color: #f7fffe;
}

.phm-contact-route-stack span,
.phm-contact-checklist span {
    display: block;
    color: rgba(240, 255, 252, 0.84);
}

.phm-contact-route-stack p {
    margin: 0.45rem 0 0;
    color: rgba(240, 255, 252, 0.84);
    font-size: 0.92rem;
}

.phm-contact-detail-grid {
    align-items: start;
}

.phm-contact-self-service {
    align-content: start;
}

.phm-landing,
.phm-search-page,
.phm-privacy-page {
    display: grid;
    gap: 1.5rem;
}

.phm-hero-card,
.phm-landing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.95fr);
    gap: 1.5rem;
    padding: 2rem;
    border-radius: 1.75rem;
    background-image:
        linear-gradient(135deg, rgba(17, 50, 74, 0.78), rgba(31, 122, 182, 0.55)),
        url('/assets/media/photos/kitchen-hero-1920.jpg');
    background-position: center, center;
    background-size: cover, cover;
    background-repeat: no-repeat, no-repeat;
    color: #f4fffe;
    box-shadow: 0 28px 58px rgba(34, 103, 137, 0.18);
}

/* Overview hero: single-column layout, corner-positioned metrics, lighter overlay so the kitchen photo shows through. */
.phm-landing-hero.phm-overview-hero {
    position: relative;
    grid-template-columns: minmax(0, 1fr);
    padding: 2.5rem 2.25rem;
    min-height: 32rem;
    background-image:
        linear-gradient(135deg, rgba(17, 50, 74, 0.55), rgba(31, 122, 182, 0.30)),
        url('/assets/media/photos/kitchen-hero-1920.jpg');
}

.phm-overview-hero .phm-overview-hero-copy {
    max-width: 46rem;
}

.phm-overview-hero h1 {
    margin-bottom: 1.75rem;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
}

.phm-overview-hero .phm-overview-hero-intro p {
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.32);
}

.phm-overview-hero .phm-action-row {
    margin-top: 1.5rem;
}

.phm-hero-card h1,
.phm-landing-hero h1 {
    color: #f8ffff;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.02;
    margin-bottom: 0.85rem;
}

.phm-hero-card p,
.phm-landing-hero p {
    color: rgba(244, 255, 254, 0.86);
    max-width: 42rem;
    font-size: 1rem;
}

.phm-eyebrow,
.phm-section-kicker {
    display: inline-block;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--phm-blue-deep);
}

.phm-hero-card .phm-eyebrow,
.phm-landing-hero .phm-eyebrow,
.phm-room-hero .phm-eyebrow,
.phm-account-hero .phm-eyebrow,
.phm-confirmation-hero .phm-eyebrow,
.phm-create-home-hero .phm-eyebrow,
.phm-login-hero .phm-eyebrow,
.phm-register-hero .phm-eyebrow,
.phm-room-modal-overlay .phm-eyebrow {
    color: #d8fff2;
}

.phm-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.25rem;
}

.phm-hero-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 3.35rem;
    padding: 0.85rem 1.3rem;
    border-radius: 1rem;
    border: 1px solid transparent;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.phm-hero-action:hover,
.phm-hero-action:focus {
    transform: translateY(-1px);
}

.phm-hero-action i {
    font-size: 1.05rem;
}

.phm-hero-action-primary {
    background: linear-gradient(135deg, rgba(21, 124, 190, 0.92), rgba(31, 154, 137, 0.94));
    border-color: rgba(190, 239, 255, 0.22);
    color: #f7fffe;
    box-shadow: 0 16px 28px rgba(10, 60, 95, 0.22);
}

.phm-hero-action-primary:hover,
.phm-hero-action-primary:focus {
    background: linear-gradient(135deg, rgba(14, 98, 151, 0.96), rgba(24, 127, 114, 0.96));
    color: #f7fffe;
    box-shadow: 0 18px 32px rgba(8, 47, 76, 0.28);
}

.phm-hero-action-secondary {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(221, 245, 255, 0.35);
    color: #163750;
    box-shadow: 0 14px 24px rgba(12, 51, 80, 0.12);
}

.phm-hero-action-secondary:hover,
.phm-hero-action-secondary:focus {
    background: #ffffff;
    border-color: rgba(255, 255, 255, 0.68);
    color: #102c42;
    box-shadow: 0 18px 30px rgba(12, 51, 80, 0.18);
}

.phm-hero-action-feedback {
    background: rgba(9, 44, 68, 0.16);
    border-color: rgba(220, 248, 255, 0.34);
    color: #ecfffb;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.phm-hero-action-feedback:hover,
.phm-hero-action-feedback:focus {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(240, 255, 252, 0.58);
    color: #ffffff;
    box-shadow: 0 16px 28px rgba(8, 43, 69, 0.18);
}

.phm-hero-action-feedback i {
    color: rgba(220, 248, 255, 0.96);
}

.phm-inline-action-form {
    display: inline-flex;
}

.phm-hero-panel,
.phm-landing-panel {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.phm-mini-note,
.phm-landing-note {
    padding: 1rem 1.1rem;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.phm-mini-note strong,
.phm-landing-note strong {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 1.2rem;
    color: #f7fffe;
}

.phm-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.phm-mini-grid > div,
.phm-landing-checklist article {
    padding: 1rem 1.05rem;
    border-radius: 1.15rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.phm-mini-grid strong,
.phm-landing-checklist strong {
    display: block;
    font-size: 1.2rem;
    color: #f7fffe;
}

.phm-mini-grid span,
.phm-landing-checklist span {
    color: rgba(240, 255, 252, 0.82);
    font-size: 0.86rem;
}

.phm-section {
    margin-top: 1.5rem;
    padding: 1.6rem;
    border-radius: 1.5rem;
    background: var(--phm-surface);
    border: 1px solid var(--phm-border);
    box-shadow: 0 18px 38px var(--phm-shadow);
}

.phm-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.phm-section-header h2 {
    margin-bottom: 0;
    color: var(--phm-ink);
}

.phm-dashboard-subnav-shell {
    padding: 1rem;
}

.phm-dashboard-subnav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

.phm-dashboard-subnav-link {
    display: grid;
    gap: 0.35rem;
    padding: 1rem 1.05rem;
    border-radius: 1.1rem;
    border: 1px solid rgba(136, 182, 211, 0.24);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 254, 0.96));
    color: inherit;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.phm-dashboard-subnav-link:hover,
.phm-dashboard-subnav-link:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(31, 122, 182, 0.34);
    box-shadow: 0 14px 24px rgba(24, 50, 74, 0.08);
    color: inherit;
}

.phm-dashboard-subnav-link.is-active {
    border-color: rgba(23, 138, 132, 0.34);
    background: linear-gradient(180deg, rgba(233, 248, 241, 0.98), rgba(255, 255, 255, 0.98));
    box-shadow: 0 16px 28px rgba(23, 138, 132, 0.12);
}

.phm-dashboard-subnav-label {
    color: var(--phm-ink);
    font-size: 1rem;
    font-weight: 700;
}

.phm-dashboard-subnav-copy {
    color: var(--phm-ink-soft);
    font-size: 0.88rem;
    line-height: 1.45;
}

.phm-workspace-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.phm-workspace-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: 1.25rem;
    border-radius: 1.3rem;
    background:
        radial-gradient(circle at top right, rgba(27, 145, 139, 0.10), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 253, 0.98));
    border: 1px solid rgba(142, 183, 207, 0.26);
    box-shadow: 0 16px 28px rgba(16, 52, 80, 0.08);
}

.phm-workspace-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    border-radius: 1.3rem 1.3rem 0 0;
    background: linear-gradient(90deg, rgba(18, 112, 169, 0.88), rgba(27, 145, 139, 0.88));
}

.phm-workspace-card h3 {
    margin: 0;
    color: var(--phm-ink);
}

.phm-workspace-kicker {
    display: inline-flex;
    align-self: flex-start;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(14, 98, 151, 0.10);
    color: var(--phm-blue-deep);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.phm-workspace-meta {
    display: grid;
    gap: 0.15rem;
    margin-top: auto;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(143, 184, 208, 0.22);
}

.phm-workspace-meta strong {
    color: var(--phm-ink);
    font-size: 1rem;
}

.phm-workspace-meta span {
    color: var(--phm-ink-soft);
    font-size: 0.88rem;
}

.phm-data-table-shell {
    border-radius: 1.25rem;
    border: 1px solid rgba(140, 182, 207, 0.22);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 251, 253, 0.99));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
    overflow: hidden;
}

.phm-data-table {
    margin-bottom: 0;
}

.phm-data-table thead th {
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-bottom-width: 1px;
    color: var(--phm-blue-deep);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.phm-data-table td {
    padding-top: 1rem;
    padding-bottom: 1rem;
    vertical-align: middle;
}

.phm-data-link {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.7rem;
    border-radius: 999px;
    background: rgba(14, 98, 151, 0.08);
    color: var(--phm-blue-deep);
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.phm-data-link:hover,
.phm-data-link:focus-visible {
    background: rgba(27, 145, 139, 0.14);
    color: #114767;
    transform: translateY(-1px);
}

.phm-insight-list {
    display: grid;
    gap: 0.75rem;
}

.phm-insight-item {
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(140, 182, 207, 0.2);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 253, 0.98));
}

.phm-insight-item strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--phm-ink);
}

.phm-insight-meta {
    margin-bottom: 0.2rem;
    color: var(--phm-ink-soft);
    font-size: 0.88rem;
}

.phm-stat-grid,
.phm-feature-grid,
.phm-phase-grid,
.phm-search-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.phm-stat-card,
.phm-feature-card,
.phm-phase-card,
.phm-search-card,
.phm-policy-card,
.phm-priority-card {
    display: flex;
    flex-direction: column;
    padding: 1.2rem;
    border-radius: 1.25rem;
    background: var(--phm-surface-strong);
    border: 1px solid var(--phm-border);
}

.phm-stat-card span:first-child {
    display: block;
    margin-bottom: 0.55rem;
    color: var(--phm-blue-deep);
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.phm-stat-card strong {
    display: block;
    font-size: 2rem;
    color: var(--phm-ink);
}

.phm-stat-card p,
.phm-feature-card p,
.phm-phase-card p,
.phm-search-card p,
.phm-policy-card p,
.phm-priority-card p {
    margin-bottom: 0;
    color: var(--phm-ink-soft);
}

.phm-home-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
}

.phm-plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.2rem;
}

.phm-plan-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 1.35rem;
    background: var(--phm-surface-strong);
    border: 1px solid var(--phm-border);
    box-shadow: 0 14px 26px rgba(35, 91, 124, 0.08);
}

.phm-plan-card-current {
    border-color: rgba(23, 138, 132, 0.35);
    box-shadow: 0 18px 34px rgba(23, 138, 132, 0.12);
}

.phm-plan-card-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 1rem;
}

.phm-plan-card-header > div:first-child {
    min-width: 0;
}

.phm-plan-card-header h3 {
    margin: 0.2rem 0 0;
}

.phm-plan-price {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
    justify-self: end;
    min-width: 8.75rem;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    background: rgba(206, 233, 247, 0.95);
    color: #1b5f92;
    font-weight: 700;
    line-height: 1.05;
    text-align: center;
}

.phm-plan-price-amount {
    display: block;
    white-space: nowrap;
}

.phm-plan-price-cadence {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.phm-plan-price-single {
    min-width: auto;
    padding-inline: 1rem;
}

@media (max-width: 440px) {
    .phm-plan-card-header {
        grid-template-columns: 1fr;
    }

    .phm-plan-price {
        justify-self: start;
    }
}

.phm-home-card {
    overflow: hidden;
    border-radius: 1.35rem;
    background: var(--phm-surface-strong);
    border: 1px solid var(--phm-border);
    box-shadow: 0 14px 26px rgba(35, 91, 124, 0.08);
}

.phm-home-media {
    position: relative;
    height: 220px;
}

.phm-home-image,
.phm-modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.phm-home-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(17, 92, 141, 0.78);
    color: #f4fffd;
    backdrop-filter: blur(6px);
    font-size: 0.82rem;
    font-weight: 700;
}

.phm-home-body {
    display: grid;
    gap: 1rem;
    padding: 1.2rem;
}

.phm-home-heading {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.phm-home-heading h3 {
    margin-bottom: 0.35rem;
    color: var(--phm-ink);
}

.phm-home-heading p {
    margin-bottom: 0;
    color: var(--phm-ink-soft);
}

.phm-occupant-pill {
    display: inline-flex;
    align-items: center;
    height: fit-content;
    padding: 0.42rem 0.8rem;
    border-radius: 999px;
    background: rgba(47, 155, 122, 0.12);
    color: #1f775d;
    font-size: 0.82rem;
    font-weight: 700;
}

.phm-home-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.phm-home-metrics > div {
    padding: 0.9rem;
    border-radius: 1rem;
    background: linear-gradient(180deg, #f2fafe, #eef9f4);
}

.phm-home-metrics strong {
    display: block;
    color: var(--phm-ink);
}

.phm-home-metrics span {
    color: var(--phm-blue-deep);
    font-size: 0.84rem;
    font-weight: 600;
}

.phm-progress-shell {
    display: grid;
    gap: 0.45rem;
}

.phm-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--phm-blue-deep);
    font-weight: 600;
}

.phm-progress-shell .progress {
    height: 0.75rem;
    border-radius: 999px;
    background: #dfeef7;
}

.phm-progress-shell .progress-bar {
    background: linear-gradient(90deg, var(--phm-blue), var(--phm-green));
}

.phm-progress-meter {
    display: block;
    width: 100%;
    height: 0.75rem;
    appearance: none;
    border: 0;
    border-radius: 999px;
    overflow: hidden;
    background: #dfeef7;
}

.phm-progress-meter::-webkit-progress-bar {
    background: #dfeef7;
}

.phm-progress-meter::-webkit-progress-value {
    background: linear-gradient(90deg, var(--phm-blue), var(--phm-green));
    border-radius: 999px;
}

.phm-progress-meter::-moz-progress-bar {
    background: linear-gradient(90deg, var(--phm-blue), var(--phm-green));
    border-radius: 999px;
}

.phm-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.phm-room-link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.phm-room-link {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(31, 122, 182, 0.1);
    color: var(--phm-blue-deep);
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
}

.phm-room-link:hover,
.phm-room-link:focus {
    background: rgba(47, 155, 122, 0.14);
    color: #1f775d;
}

.phm-room-link-empty {
    background: rgba(23, 50, 74, 0.07);
    color: var(--phm-ink-soft);
}

.phm-priority-list {
    display: grid;
    gap: 0.85rem;
}

.phm-service-table thead th {
    color: var(--phm-ink-soft);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-size: 0.78rem;
}

.phm-empty-state,
.phm-empty-inline {
    padding: 1.4rem;
    border-radius: 1.2rem;
    background: linear-gradient(180deg, #eef8fd, #ecf8f2);
    color: var(--phm-ink-soft);
}

.phm-empty-state h3 {
    color: var(--phm-ink);
}

.phm-landing-story {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
    gap: 1rem;
    align-items: start;
}

.phm-landing-copy,
.phm-policy-grid {
    display: grid;
    gap: 1rem;
}

.phm-privacy-detail-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.phm-privacy-list {
    margin: 0;
    padding-left: 1.15rem;
    color: var(--phm-ink-soft);
    display: grid;
    gap: 0.7rem;
}

.phm-privacy-callout {
    display: grid;
    gap: 0.45rem;
    margin-bottom: 1rem;
    padding: 1rem 1.15rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(214, 237, 248, 0.95), rgba(229, 246, 241, 0.92));
    border: 1px solid rgba(43, 126, 161, 0.16);
}

.phm-privacy-callout strong {
    color: var(--phm-ink);
}

.phm-privacy-callout span {
    color: var(--phm-ink-soft);
}

.phm-privacy-hero-badges .phm-record-badge {
    background: rgba(245, 251, 255, 0.92);
    border-color: rgba(255, 255, 255, 0.48);
    color: #18456d;
    box-shadow: 0 10px 20px rgba(10, 46, 74, 0.12);
}

.phm-privacy-hero-badges .phm-record-badge.phm-record-badge-good {
    background: rgba(231, 248, 241, 0.96);
    border-color: rgba(118, 201, 171, 0.42);
    color: #14654f;
}

.phm-landing-checklist {
    display: grid;
    gap: 0.9rem;
}

.phm-overview-page {
    gap: 1.75rem;
}

.phm-overview-hero-copy {
    display: grid;
    gap: 1.2rem;
}

.phm-overview-hero-copy p:last-of-type {
    margin-bottom: 0;
}

.phm-overview-hero-intro {
    display: grid;
    gap: 0.85rem;
}

.phm-overview-hero-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.phm-overview-hero-metrics article {
    padding: 1rem 1.05rem;
    border-radius: 1.15rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.phm-overview-hero-metrics strong {
    display: block;
    color: #f7fffe;
    margin-bottom: 0.45rem;
    font-size: 1.05rem;
}

.phm-overview-hero-metrics span {
    color: rgba(240, 255, 252, 0.84);
}

/* Corner-floated compact metrics for the overview hero. */
.phm-overview-hero-metrics--corner {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    width: min(34rem, 48%);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin: 0;
    padding: 0.75rem;
    border-radius: 1rem;
    background: rgba(17, 50, 74, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(6px);
}

.phm-overview-hero-metrics--corner article {
    padding: 0.55rem 0.7rem;
    border-radius: 0.7rem;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

.phm-overview-hero-metrics--corner strong {
    margin-bottom: 0.15rem;
    font-size: 0.78rem;
    line-height: 1.2;
}

.phm-overview-hero-metrics--corner span {
    font-size: 0.72rem;
    line-height: 1.35;
}

/* Section that replaces the old right-side hero panel. */
.phm-overview-questions-section {
    margin-top: 0;
}

.phm-overview-surface-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.phm-overview-surface-card {
    padding: 1.15rem 1.2rem;
    border-radius: 1.15rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(54, 110, 143, 0.12);
    box-shadow: 0 14px 28px rgba(33, 96, 128, 0.07);
}

.phm-overview-surface-card strong {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 1rem;
    color: var(--phm-ink);
}

.phm-overview-surface-card span {
    color: var(--phm-ink-soft);
    font-size: 0.92rem;
    line-height: 1.5;
}

.phm-overview-surface-callout {
    margin-top: 1.5rem;
    padding: 1.15rem 1.35rem;
    border-radius: 1.2rem;
    background: linear-gradient(135deg, rgba(31, 122, 182, 0.10), rgba(47, 155, 122, 0.12));
    border: 1px solid rgba(31, 122, 182, 0.18);
}

.phm-overview-surface-callout strong {
    display: block;
    color: var(--phm-blue-deep);
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.phm-overview-surface-callout span {
    color: var(--phm-ink-soft);
    font-size: 0.92rem;
    line-height: 1.5;
}

.phm-overview-capability-grid,
.phm-overview-use-grid,
.phm-overview-tier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    align-items: stretch;
}

.phm-overview-feature-card,
.phm-overview-use-card,
.phm-overview-tier-card {
    display: grid;
    gap: 0.85rem;
}

.phm-overview-card-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.32rem 0.65rem;
    border-radius: 999px;
    background: rgba(31, 122, 182, 0.1);
    color: var(--phm-blue-deep);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.phm-overview-feature-card h3,
.phm-overview-use-card h3,
.phm-overview-tier-card h3 {
    margin-bottom: 0;
}

.phm-overview-list {
    margin: 0;
    padding-left: 1.15rem;
    display: grid;
    gap: 0.65rem;
    color: var(--phm-ink-soft);
}

.phm-overview-tier-card {
    position: relative;
    overflow: hidden;
    min-height: 100%;
    padding: 1.5rem;
    border-radius: 1.5rem;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.96));
    border: 1px solid rgba(177, 207, 226, 0.58);
    box-shadow:
        0 18px 40px rgba(17, 57, 88, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.phm-overview-tier-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 0.38rem;
    background: linear-gradient(90deg, rgba(30, 122, 182, 0.72), rgba(56, 167, 129, 0.72));
}

.phm-overview-tier-card::after {
    content: "";
    position: absolute;
    top: -4rem;
    right: -3.5rem;
    width: 10rem;
    height: 10rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(91, 181, 214, 0.2), rgba(91, 181, 214, 0));
    pointer-events: none;
}

.phm-overview-tier-card:hover,
.phm-overview-tier-card:focus-within {
    transform: translateY(-6px);
    box-shadow:
        0 26px 52px rgba(17, 57, 88, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.phm-overview-tier-card h3 {
    color: var(--phm-ink);
    font-size: clamp(2rem, 2.8vw, 2.5rem);
    line-height: 0.95;
    letter-spacing: -0.03em;
}

.phm-overview-tier-card p,
.phm-overview-tier-card li {
    color: var(--phm-ink-soft);
}

.phm-overview-tier-card-basic {
    background:
        radial-gradient(circle at top right, rgba(175, 218, 246, 0.42), rgba(175, 218, 246, 0) 42%),
        linear-gradient(180deg, #ffffff, #f2f9ff);
}

.phm-overview-tier-card-basic::before {
    background: linear-gradient(90deg, #5fa5d9, #8fd4f4);
}

.phm-overview-tier-card-standard {
    background:
        radial-gradient(circle at top right, rgba(104, 241, 193, 0.24), rgba(104, 241, 193, 0) 42%),
        linear-gradient(145deg, #0e4563, #0f7b75 54%, #3bb693);
    border-color: rgba(74, 211, 170, 0.3);
    box-shadow:
        0 30px 60px rgba(15, 91, 98, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.phm-overview-tier-card-standard::before {
    background: linear-gradient(90deg, #a8ffda, #effff7);
}

.phm-overview-tier-card-pro {
    background:
        radial-gradient(circle at top right, rgba(130, 176, 255, 0.28), rgba(130, 176, 255, 0) 42%),
        linear-gradient(145deg, #122f64, #2650a2 58%, #5b8df0);
    border-color: rgba(127, 163, 255, 0.26);
    box-shadow:
        0 26px 54px rgba(28, 61, 132, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.phm-overview-tier-card-pro::before {
    background: linear-gradient(90deg, #dce8ff, #ffffff);
}

.phm-overview-tier-card-premium {
    background:
        radial-gradient(circle at top right, rgba(158, 172, 190, 0.24), rgba(158, 172, 190, 0) 42%),
        linear-gradient(180deg, #fbfcfe, #f3f6fa);
}

.phm-overview-tier-card-premium::before {
    background: linear-gradient(90deg, #68788a, #9aa9ba);
}

.phm-overview-tier-card-featured {
    transform: translateY(-10px);
}

.phm-overview-tier-card-featured::after {
    background: radial-gradient(circle, rgba(132, 255, 213, 0.3), rgba(132, 255, 213, 0));
}

.phm-overview-tier-card-featured .phm-overview-tier-header::after {
    content: "Most popular";
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #f5fff8;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.phm-overview-tier-card-muted {
    border-style: dashed;
    border-color: rgba(151, 166, 184, 0.48);
}

.phm-overview-tier-header {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.95rem;
}

.phm-overview-tier-price {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.7rem 0.95rem;
    border-radius: 1rem;
    background: rgba(232, 246, 255, 0.96);
    color: #145785;
    font-size: 0.95rem;
    font-weight: 800;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(123, 182, 217, 0.3);
}

.phm-overview-tier-card-standard .phm-overview-tier-price {
    background: rgba(244, 255, 251, 0.95);
    color: #0e6c61;
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow: 0 12px 24px rgba(8, 46, 51, 0.16);
}

.phm-overview-tier-card-pro .phm-overview-tier-price {
    background: rgba(247, 250, 255, 0.95);
    color: #224b9f;
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow: 0 12px 24px rgba(18, 40, 97, 0.18);
}

.phm-overview-tier-card-premium .phm-overview-tier-price {
    background: linear-gradient(135deg, rgba(240, 244, 248, 0.98), rgba(229, 236, 242, 0.94));
    color: #566577;
    border-color: rgba(126, 144, 162, 0.24);
}

.phm-overview-tier-card .phm-overview-card-kicker {
    background: rgba(227, 241, 251, 0.92);
    border: 1px solid rgba(141, 192, 223, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.phm-overview-tier-card-standard .phm-overview-card-kicker {
    background: rgba(240, 255, 250, 0.14);
    color: #e7fff7;
    border-color: rgba(255, 255, 255, 0.14);
}

.phm-overview-tier-card-pro .phm-overview-card-kicker {
    background: rgba(243, 247, 255, 0.14);
    color: #eef4ff;
    border-color: rgba(255, 255, 255, 0.14);
}

.phm-overview-tier-card-premium .phm-overview-card-kicker {
    background: rgba(239, 243, 247, 0.95);
    color: #5e6d7d;
    border-color: rgba(150, 164, 180, 0.18);
}

.phm-overview-tier-card > p,
.phm-overview-tier-card > .phm-overview-list {
    position: relative;
    z-index: 1;
}

.phm-overview-tier-card > p {
    font-size: 1.08rem;
    line-height: 1.55;
    max-width: 24rem;
}

.phm-overview-tier-card .phm-overview-list {
    padding: 1rem 1.15rem 1rem 1.55rem;
    border-radius: 1.15rem;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(196, 215, 229, 0.42);
}

.phm-overview-tier-card-standard h3,
.phm-overview-tier-card-standard > p,
.phm-overview-tier-card-standard li,
.phm-overview-tier-card-standard .phm-overview-list,
.phm-overview-tier-card-pro h3,
.phm-overview-tier-card-pro > p,
.phm-overview-tier-card-pro li,
.phm-overview-tier-card-pro .phm-overview-list {
    color: #f6fbff;
}

.phm-overview-tier-card-standard > p,
.phm-overview-tier-card-pro > p {
    color: rgba(242, 251, 255, 0.9);
}

.phm-overview-tier-card-standard .phm-overview-list {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

.phm-overview-tier-card-pro .phm-overview-list {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.12);
}

.phm-overview-tier-card-standard .phm-overview-list li::marker,
.phm-overview-tier-card-pro .phm-overview-list li::marker {
    color: #ffffff;
}

.phm-overview-tier-card .phm-overview-list li::marker {
    color: #2d86bf;
}

.phm-overview-tier-card-standard .phm-overview-list li::marker {
    color: #1f9d82;
}

.phm-overview-tier-card-pro .phm-overview-list li::marker {
    color: #4b78da;
}

.phm-overview-tier-card-premium .phm-overview-list li::marker {
    color: #7b8999;
}

@media (min-width: 1200px) {
    .phm-overview-tier-grid {
        grid-template-columns: 0.95fr 1.15fr 1.05fr 0.95fr;
    }
}

.phm-overview-subscription-note {
    display: grid;
    gap: 0.35rem;
    margin-top: 1.1rem;
    padding: 1rem 1.1rem;
    border-radius: 1.15rem;
    background: linear-gradient(135deg, rgba(214, 237, 248, 0.95), rgba(229, 246, 241, 0.92));
    border: 1px solid rgba(43, 126, 161, 0.16);
}

.phm-overview-subscription-note strong {
    color: var(--phm-ink);
}

.phm-overview-subscription-note span {
    color: var(--phm-ink-soft);
}

.phm-overview-proof-grid {
    gap: 1.2rem;
}

.phm-overview-proof-list {
    align-content: start;
}

.phm-overview-final-cta {
    display: grid;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(18, 98, 148, 0.08), rgba(55, 154, 126, 0.08));
}

/* Below tablet width, drop the corner metrics back into normal flow under the CTAs. */
@media (max-width: 991.98px) {
    .phm-overview-hero-metrics--corner {
        position: static;
        width: 100%;
        margin-top: 1.5rem;
        background: rgba(17, 50, 74, 0.32);
    }
}

@media (max-width: 767.98px) {
    .phm-overview-hero-metrics {
        grid-template-columns: 1fr;
    }

    .phm-landing-hero.phm-overview-hero {
        min-height: 0;
        padding: 1.75rem 1.5rem;
    }
}

.phm-search-bar {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.phm-search-bar .form-control {
    flex: 1 1 420px;
}

.phm-search-card h3,
.phm-feature-card h3,
.phm-phase-card h3,
.phm-policy-card h3 {
    margin-bottom: 0.55rem;
    color: var(--phm-ink);
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.phm-search-card-actions {
    margin-top: auto;
    padding-top: 1rem;
}

.phm-catalog-upload-card {
    height: 100%;
}

.phm-catalog-upload-form-shell {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 100%;
}

.phm-catalog-upload-form-shell > .row {
    flex: 1 1 auto;
    align-content: start;
}

.phm-catalog-upload-actions {
    margin-top: auto;
    padding-top: 1rem;
}

.phm-modal-shell {
    display: grid;
    gap: 1.2rem;
}

.phm-modal-hero {
    display: grid;
    grid-template-columns: minmax(210px, 280px) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.phm-modal-image {
    border-radius: 1.2rem;
    max-height: 220px;
}

.phm-modal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.phm-modal-list {
    display: grid;
    gap: 0.75rem;
}

.phm-modal-item {
    display: grid;
    gap: 0.15rem;
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    background: linear-gradient(180deg, #f2fafe, #edf7f3);
}

.phm-modal-item strong {
    color: var(--phm-ink);
}

.phm-modal-item span {
    color: var(--phm-ink-soft);
    font-size: 0.9rem;
}

.phm-room-page {
    display: grid;
    gap: 1.5rem;
}

.phm-room-dimension-field {
    max-width: 18rem;
}

.phm-room-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
    gap: 1.5rem;
    padding: 2rem;
    border-radius: 1.75rem;
    background: linear-gradient(135deg, rgba(20, 104, 160, 0.94), rgba(46, 158, 126, 0.9));
    color: #f5fffd;
    box-shadow: 0 26px 56px rgba(34, 103, 137, 0.16);
}

.phm-room-hero h1 {
    margin-bottom: 0.8rem;
    color: #f8ffff;
    font-size: clamp(2rem, 4vw, 3rem);
}

.phm-room-hero p {
    color: rgba(245, 255, 253, 0.88);
    max-width: 42rem;
}

.phm-room-hero .btn-outline-primary {
    color: #f6fffd;
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.1);
}

.phm-room-hero .btn-outline-primary:hover,
.phm-room-hero .btn-outline-primary:focus {
    color: #f6fffd;
    border-color: rgba(255, 255, 255, 0.58);
    background: rgba(255, 255, 255, 0.18);
}

.phm-room-basics-card .phm-action-row {
    margin-top: 0.8rem;
}

.phm-room-basics-card .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.1rem;
    padding: 0.8rem 1.2rem;
    line-height: 1.15;
    border-radius: 0.95rem;
}

.phm-room-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.phm-room-mini-grid > div {
    padding: 1rem 1.05rem;
    border-radius: 1.15rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.phm-room-mini-grid strong {
    display: block;
    color: #f8ffff;
}

.phm-room-mini-grid span {
    color: rgba(240, 255, 252, 0.82);
    font-size: 0.86rem;
}

.phm-room-aside-list {
    display: grid;
    gap: 0.9rem;
}

.phm-room-aside-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.05rem;
    border-radius: 1rem;
    background: linear-gradient(180deg, #f2fafe, #eef9f4);
}

.phm-room-aside-copy {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.phm-room-aside-item strong {
    color: var(--phm-ink);
}

.phm-room-aside-item span {
    color: var(--phm-ink-soft);
}

.phm-room-aside-action {
    white-space: nowrap;
}

.phm-section-header-with-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.phm-section-header-with-actions > .btn,
.phm-section-header-with-actions > div + .btn {
    flex: 0 0 auto;
}

.phm-room-workspace-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.1rem;
    height: auto;
    padding: 1.25rem;
    border-radius: 1.25rem;
    background: var(--phm-surface-strong);
    border: 1px solid var(--phm-border);
    box-shadow: 0 14px 26px rgba(35, 91, 124, 0.08);
}

.phm-room-workspace-card.h-100 {
    height: 100%;
}

.phm-room-workspace-card > .phm-section-header {
    flex: 0 0 auto;
    margin-bottom: 0;
}

.phm-room-workspace-card > .phm-section-header .phm-section-kicker {
    margin-bottom: 0.35rem;
}

.phm-room-workspace-card > .phm-section-header h3 {
    display: block;
    margin-bottom: 0;
    color: var(--phm-ink);
    font-size: 1.18rem;
    line-height: 1.2;
}

.phm-room-workspace-card > .phm-section-header p {
    margin: 0.2rem 0 0;
}

.phm-room-basics-helper {
    margin: -0.1rem 0 0;
    color: var(--phm-ink-soft);
    font-size: 0.94rem;
    line-height: 1.45;
}

.phm-room-record-list {
    display: grid;
    align-content: start;
    align-self: start;
    gap: 0.85rem;
    grid-auto-rows: max-content;
    margin: 0;
}

.phm-paint-record-list {
    --phm-paint-card-scale: 0.65;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.phm-paint-record-list--single {
    --phm-paint-card-scale: 1;
    grid-template-columns: 1fr;
}

.phm-paint-record-list--compact {
    --phm-paint-card-scale: 0.65;
}

.phm-paint-record-list--compact .phm-paint-swatch-thumbnail {
    width: 40px;
    height: 40px;
    min-height: 40px;
}

.phm-room-assets-order-1 {
    order: 1;
}

.phm-room-assets-order-2 {
    order: 2;
}

.phm-room-assets-order-3 {
    order: 3;
}

.phm-room-assets-order-4 {
    order: 4;
}

.phm-room-assets-order-5 {
    order: 5;
}

.phm-room-assets-order-6 {
    order: 6;
}

.phm-room-assets-order-7 {
    order: 7;
}

.phm-room-assets-order-8 {
    order: 8;
}

.phm-room-record-item {
    display: grid;
    gap: 0.2rem;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    scroll-margin-top: 1.5rem;
    background: linear-gradient(180deg, #f5fbff, #eef9f4);
    border: 1px solid rgba(38, 113, 149, 0.12);
}

.phm-room-record-copy {
    display: grid;
    gap: 0.2rem;
    align-content: start;
}

.phm-record-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0.1rem 0 0.2rem;
}

.phm-record-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 1.85rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: rgba(28, 124, 178, 0.1);
    border: 1px solid rgba(38, 113, 149, 0.14);
    color: var(--phm-blue-deep);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.1;
}

.phm-subscription-price-badge {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.12rem;
    min-width: 5.75rem;
    text-align: center;
}

.phm-subscription-price-badge-amount {
    display: block;
    white-space: nowrap;
}

.phm-subscription-price-badge-cadence {
    display: block;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.phm-record-badge-good {
    background: rgba(49, 153, 123, 0.12);
    color: #18765d;
    border-color: rgba(49, 153, 123, 0.18);
}

.phm-record-badge-warning {
    background: rgba(205, 132, 39, 0.13);
    color: #9f5f15;
    border-color: rgba(205, 132, 39, 0.2);
}

.phm-record-badge-pending {
    background: rgba(28, 124, 178, 0.12);
    color: #1b638b;
    border-color: rgba(28, 124, 178, 0.18);
}

.phm-inline-spinner {
    width: 0.78rem;
    height: 0.78rem;
    border-radius: 999px;
    border: 2px solid rgba(27, 99, 139, 0.22);
    border-top-color: #1b638b;
    animation: phm-spin 0.8s linear infinite;
}

.phm-room-record-item strong {
    color: var(--phm-ink);
    line-height: 1.3;
}

.phm-room-record-title {
    margin: 0;
    color: var(--phm-ink);
    line-height: 1.28;
    scroll-margin-top: 7rem;
}

#catalog-manual-contribution,
#catalog-video-contribution,
#appliance-maintenance-planning,
#shared-appliance-knowledge,
#suggested-appliance-manual,
[id^="maintenance-event-"] {
    scroll-margin-top: 7rem;
}

.phm-room-record-item span,
.phm-room-record-item a {
    color: var(--phm-ink-soft);
    line-height: 1.45;
}

.phm-room-record-item a {
    font-weight: 600;
    text-decoration: none;
}

.phm-room-record-item a:hover,
.phm-room-record-item a:focus {
    color: var(--phm-blue-deep);
    text-decoration: underline;
}

.phm-inline-edit-shell {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.phm-inline-edit-shell[open] {
    padding-top: 0.25rem;
}

.phm-inline-edit-toggle {
    justify-self: start;
    list-style: none;
}

.phm-inline-edit-toggle::-webkit-details-marker {
    display: none;
}

.phm-inline-edit-form {
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(38, 113, 149, 0.12);
}

.phm-inline-edit-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
}

.phm-room-record-item:focus {
    outline: 3px solid rgba(43, 122, 231, 0.28);
    outline-offset: 4px;
}

.phm-room-subform {
    display: grid;
    gap: 1rem;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(38, 113, 149, 0.12);
}

.phm-parts-search-layout {
    display: grid;
    gap: 1.25rem;
}

.phm-parts-search-form-panel,
.phm-parts-search-results-panel {
    min-width: 0;
}

.phm-parts-search-results-panel {
    display: grid;
    align-content: start;
    gap: 0;
}

.phm-appliance-form-card {
    gap: 0.75rem;
    padding: 1rem 1.1rem;
}

.phm-appliance-form-card .phm-section-header {
    margin-bottom: 0.4rem;
}

.phm-appliance-form-card .phm-section-header h3 {
    margin-bottom: 0.35rem;
}

.phm-appliance-form-card .phm-section-header p {
    margin-bottom: 0;
    max-width: 34rem;
    line-height: 1.45;
}

.phm-appliance-subform {
    gap: 0.8rem;
    padding-top: 0.2rem;
}

.phm-appliance-subform .phm-create-home-field {
    gap: 0.3rem;
}

.phm-appliance-subform .phm-create-home-field .form-control,
.phm-appliance-subform .phm-create-home-field .form-select {
    min-height: 3.15rem;
}

.phm-appliance-subform .form-text {
    margin-top: 0.05rem;
    line-height: 1.35;
}

.phm-appliance-records-card .phm-room-record-item {
    gap: 0.15rem;
    padding: 0.9rem 1rem;
    font-size: 0.86rem;
}

.phm-appliance-records-card .phm-room-record-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.phm-appliance-records-card .phm-appliance-service-event-list {
    grid-template-columns: minmax(0, 1fr);
}

.phm-appliance-records-card .phm-appliance-service-event-list .phm-room-record-item {
    width: 100%;
}

.phm-appliance-record-section-full {
    grid-column: 1 / -1;
    min-width: 0;
}

.phm-appliance-records-card .phm-room-record-copy,
.phm-appliance-records-card .phm-record-badges {
    min-width: 0;
    width: 100%;
}

.phm-appliance-records-card .phm-room-record-item strong {
    font-size: 1.02rem;
}

.phm-appliance-record-title {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.phm-appliance-records-card .phm-room-record-copy > *,
.phm-appliance-records-card .phm-room-record-copy details,
.phm-appliance-records-card .phm-room-record-copy summary,
.phm-appliance-records-card .phm-room-record-copy span,
.phm-appliance-records-card .phm-room-record-copy a {
    min-width: 0;
}

.phm-appliance-records-card .phm-room-record-copy span,
.phm-appliance-records-card .phm-room-record-copy a,
.phm-appliance-records-card .phm-room-record-copy summary {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.phm-appliance-records-card .phm-room-record-item span,
.phm-appliance-records-card .phm-room-record-item a {
    line-height: 1.34;
}

.phm-appliance-manual-status-pending {
    color: #168d4a !important;
    font-weight: 700;
}

.phm-appliance-records-card .phm-record-badge {
    min-height: 1.7rem;
    padding: 0.18rem 0.55rem;
    font-size: 0.76rem;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}

.phm-appliance-actions {
    display: grid;
    gap: 0.6rem;
    margin-top: 1rem;
}

.phm-appliance-records-card .phm-appliance-actions {
    gap: 0.45rem;
    margin-top: 0.8rem;
}

.phm-appliance-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
}

.phm-appliance-records-card .phm-appliance-actions-row {
    gap: 0.4rem;
}

.phm-appliance-actions-row .btn,
.phm-appliance-actions-row .phm-inline-action-form .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.35rem;
    padding: 0.45rem 0.8rem;
    border-radius: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
    box-shadow: none;
}

.phm-appliance-records-card .phm-appliance-actions-row .btn,
.phm-appliance-records-card .phm-appliance-actions-row .phm-inline-action-form .btn {
    min-height: 2rem;
    padding: 0.35rem 0.65rem;
    font-size: 0.76rem;
    border-radius: 0.72rem;
}

.phm-appliance-actions-row-primary .btn-primary {
    background: #1570ad;
    border-color: #1570ad;
    color: #fff;
    box-shadow: 0 10px 18px rgba(21, 112, 173, 0.14);
}

.phm-appliance-actions-row-primary .btn-primary:hover,
.phm-appliance-actions-row-primary .btn-primary:focus {
    background: #0f5b8f;
    border-color: #0f5b8f;
    color: #fff;
}

.phm-appliance-actions-row-primary .btn-alt-primary,
.phm-appliance-actions-row-primary .btn-alt-secondary {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(31, 122, 182, 0.18);
    color: var(--phm-blue-deep);
}

.phm-appliance-actions-row-secondary {
    padding-top: 0.1rem;
}

.phm-appliance-actions-row-secondary .btn,
.phm-appliance-actions-row-secondary .phm-inline-action-form .btn {
    background: rgba(255, 255, 255, 0.55);
    border-color: rgba(22, 86, 128, 0.12);
    color: #49667f;
    font-weight: 600;
}

.phm-appliance-actions-row-secondary .btn:hover,
.phm-appliance-actions-row-secondary .btn:focus,
.phm-appliance-actions-row-secondary .phm-inline-action-form .btn:hover,
.phm-appliance-actions-row-secondary .phm-inline-action-form .btn:focus {
    background: rgba(255, 255, 255, 0.86);
    color: var(--phm-blue-deep);
}

@keyframes phm-spin {
    to {
        transform: rotate(360deg);
    }
}

.phm-room-record-item-with-media {
    grid-template-columns: minmax(0, 1fr) 172px;
    gap: 1rem;
    align-items: start;
}

.phm-appliance-records-card .phm-room-record-item-with-media {
    grid-template-columns: minmax(0, 1fr) 172px;
    gap: 0.75rem;
}

.phm-room-record-item-paint {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: auto;
    gap: calc(0.55rem * var(--phm-paint-card-scale));
    align-content: start;
    padding: calc(0.95rem * var(--phm-paint-card-scale)) calc(1rem * var(--phm-paint-card-scale));
}

.phm-room-record-item-paint .phm-room-record-copy {
    gap: calc(0.2rem * var(--phm-paint-card-scale));
    font-size: calc(1rem * var(--phm-paint-card-scale));
    min-width: 0;
}

.phm-paint-record-copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
}

.phm-paint-record-top {
    display: flex;
    gap: calc(0.65rem * var(--phm-paint-card-scale));
    align-items: start;
    justify-content: space-between;
    width: 100%;
}

.phm-paint-record-title {
    flex: 1 1 auto;
    min-width: 0;
    align-self: start;
}

.phm-paint-record-head {
    display: grid;
    gap: calc(0.2rem * var(--phm-paint-card-scale));
}

.phm-paint-record-details {
    display: grid;
    gap: calc(0.2rem * var(--phm-paint-card-scale));
    min-width: 0;
    grid-column: 1 / -1;
}

.phm-room-record-item-paint .phm-room-record-copy strong {
    font-size: calc(1.2rem * var(--phm-paint-card-scale));
    line-height: 1.15;
}

.phm-room-record-item-paint .phm-room-record-copy span {
    line-height: 1.4;
}

.phm-room-record-item-paint .phm-record-badges {
    flex-wrap: nowrap;
    gap: calc(0.45rem * var(--phm-paint-card-scale));
    margin: 0;
    overflow: visible;
}

.phm-paint-record-badges {
    width: 100%;
    min-width: 0;
}

.phm-room-record-item-paint .phm-record-badge {
    flex: 0 0 auto;
    gap: calc(0.45rem * var(--phm-paint-card-scale));
    min-height: calc(1.85rem * var(--phm-paint-card-scale));
    padding: calc(0.2rem * var(--phm-paint-card-scale)) calc(0.65rem * var(--phm-paint-card-scale));
    font-size: calc(0.82rem * var(--phm-paint-card-scale));
}

.phm-appliance-record-image {
    align-self: stretch;
}

.phm-appliance-record-media {
    display: grid;
    gap: 0.55rem;
    align-content: start;
}

.phm-appliance-record-image img {
    width: 100%;
    height: 132px;
    object-fit: contain;
    object-position: center;
    border-radius: 0.95rem;
    display: block;
    border: 1px solid rgba(38, 113, 149, 0.12);
    box-shadow: 0 10px 18px rgba(35, 91, 124, 0.1);
    background: #eaf6fb;
    padding: 0.45rem;
}

.phm-appliance-record-image-placeholder {
    min-height: 112px;
    padding: 0.85rem 0.75rem;
    border-radius: 0.95rem;
    border: 1px dashed rgba(38, 113, 149, 0.26);
    background: linear-gradient(180deg, rgba(238, 248, 252, 0.92), rgba(247, 252, 249, 0.96));
    color: #55758c;
    display: grid;
    gap: 0.35rem;
    align-content: center;
    text-align: center;
}

.phm-appliance-record-image-placeholder span {
    font-weight: 700;
    color: #235b7c;
}

.phm-appliance-record-image-placeholder small {
    font-size: 0.74rem;
    line-height: 1.35;
}

.phm-appliance-records-card .phm-appliance-record-image img {
    height: 112px;
}

.phm-appliance-image-upload-form {
    display: grid;
    gap: 0.4rem;
}

.phm-appliance-image-upload-form .form-label {
    margin-bottom: 0;
    font-size: 0.74rem;
    font-weight: 700;
    color: #235b7c;
}

.phm-appliance-image-upload-form .form-control {
    min-height: 2.35rem;
    font-size: 0.74rem;
}

.phm-appliance-image-upload-form .btn {
    justify-self: start;
}

.phm-appliance-image-upload-status {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    padding: 0.55rem 0.7rem;
    font-size: 0.78rem;
}

.phm-room-photo {
    align-self: stretch;
}

.phm-room-photo img {
    width: 100%;
    height: 168px;
    object-fit: cover;
    object-position: center;
    border-radius: 0.95rem;
    display: block;
    border: 1px solid rgba(38, 113, 149, 0.12);
    box-shadow: 0 10px 18px rgba(35, 91, 124, 0.1);
    background: #eaf6fb;
}

#room-images .phm-room-record-item-with-media {
    grid-template-columns: minmax(0, 1fr) 116px;
}

#room-images .phm-room-image-record {
    grid-template-areas:
        "head photo"
        "meta meta";
    row-gap: 0.9rem;
}

#room-images .phm-room-image-record-head {
    grid-area: head;
    min-width: 0;
}

#room-images .phm-room-image-record-meta {
    grid-area: meta;
    min-width: 0;
}

#room-images .phm-room-image-record .phm-room-photo {
    grid-area: photo;
}

#room-images .phm-room-photo img {
    height: 112px;
}

.phm-paint-swatch-shell {
    flex: 0 0 auto;
    align-self: start;
    display: flex;
    justify-content: flex-end;
    margin-left: auto;
    width: auto;
}

.phm-paint-swatch-thumbnail {
    width: clamp(44px, calc(58px * var(--phm-paint-card-scale)), 58px);
    height: clamp(44px, calc(58px * var(--phm-paint-card-scale)), 58px);
    min-height: clamp(44px, calc(58px * var(--phm-paint-card-scale)), 58px);
    border-radius: 0.85rem;
    border: 1px solid rgba(38, 113, 149, 0.12);
    box-shadow: 0 8px 14px rgba(35, 91, 124, 0.1);
    position: relative;
    overflow: hidden;
    flex: 0 0 auto;
    background-color: #d7d7d7;
}

.phm-paint-swatch-thumbnail::before {
    content: none;
}

.phm-paint-swatch-thumbnail-svg {
    display: block;
    width: 100%;
    height: 100%;
}

@media (max-width: 767.98px) {
    .phm-paint-record-list {
        --phm-paint-card-scale: 1;
        grid-template-columns: 1fr;
    }

    .phm-room-aside-item {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .phm-section-header-with-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .phm-room-aside-action,
    .phm-section-header-with-actions > .btn {
        width: 100%;
    }

    .phm-room-record-item-with-media {
        grid-template-columns: 1fr;
    }

    .phm-appliance-records-card .phm-room-record-item-with-media {
        grid-template-columns: 1fr;
    }

    .phm-room-record-item-paint {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .phm-appliance-record-image img {
        height: 180px;
    }

    .phm-room-photo img {
        height: 220px;
    }

    .phm-paint-swatch-thumbnail {
        width: 64px;
        height: 64px;
        min-height: 64px;
    }
}

.phm-account-shell,
.phm-confirmation-page,
.phm-register-page {
    display: grid;
    gap: 2.35rem;
}

.phm-register-page {
    padding: clamp(1rem, 2vw, 1.8rem) 0 3rem;
}

.phm-register-page .content.content-full {
    width: min(1480px, calc(100% - clamp(1.5rem, 5vw, 5rem)));
    margin: 0 auto;
    padding-top: 0.35rem;
    padding-bottom: 1.5rem;
    overflow: visible;
}

.phm-account-shell {
    padding: clamp(1rem, 2vw, 1.8rem) 0 3rem;
}

.phm-account-shell .content.content-full {
    width: min(1480px, calc(100% - clamp(1.5rem, 5vw, 5rem)));
    margin: 0 auto;
    padding-top: 0.35rem;
    padding-bottom: 1.5rem;
}

.phm-account-hero,
.phm-confirmation-hero,
.phm-register-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.95fr);
    gap: 1.5rem;
    padding: clamp(1.6rem, 2vw, 2.15rem);
    border-radius: 1.75rem;
    background: linear-gradient(135deg, rgba(20, 104, 160, 0.95), rgba(43, 154, 124, 0.9));
    color: #f5fffd;
    box-shadow: 0 28px 56px rgba(34, 103, 137, 0.16);
}

.phm-account-hero-copy,
.phm-confirmation-copy,
.phm-register-copy {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.phm-account-hero-copy h1,
.phm-confirmation-copy h1,
.phm-register-copy h1 {
    margin-bottom: 0;
    color: #f8ffff;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.04;
}

.phm-account-hero-copy p,
.phm-confirmation-copy p,
.phm-register-copy p {
    margin-bottom: 0;
    color: rgba(244, 255, 254, 0.88);
    max-width: 42rem;
}

.phm-account-hero-pills,
.phm-confirmation-pills,
.phm-register-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.phm-account-hero-pills span,
.phm-confirmation-pills span,
.phm-register-pills span {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f3fffd;
    font-size: 0.85rem;
    font-weight: 700;
}

.phm-account-hero-media,
.phm-confirmation-media,
.phm-register-media {
    position: relative;
    min-height: 280px;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.phm-account-hero-media img,
.phm-confirmation-media img,
.phm-register-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.phm-account-hero-note {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    display: grid;
    gap: 0.35rem;
    padding: 1rem 1.1rem;
    border-radius: 1.15rem;
    background: rgba(19, 50, 74, 0.66);
    backdrop-filter: blur(10px);
    color: #effcf9;
}

.phm-register-checklist {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.phm-register-checklist article {
    padding: 1rem 1.05rem;
    border-radius: 1.15rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.phm-register-checklist strong {
    display: block;
    margin-bottom: 0.35rem;
    color: #f8ffff;
}

.phm-register-checklist span {
    color: rgba(240, 255, 252, 0.82);
    font-size: 0.88rem;
}

.phm-register-media-note {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    display: grid;
    gap: 0.35rem;
    padding: 1rem 1.1rem;
    border-radius: 1.15rem;
    background: rgba(19, 50, 74, 0.68);
    backdrop-filter: blur(10px);
    color: #effcf9;
}

.phm-register-shell {
    display: grid;
    margin-top: 0.6rem;
    padding-top: 0.4rem;
}

.phm-register-panel {
    padding: 1.6rem;
    border-radius: 1.5rem;
    background: var(--phm-surface);
    border: 1px solid var(--phm-border);
    box-shadow: 0 18px 38px var(--phm-shadow);
}

.phm-register-panel-focus-target {
    outline: none;
    scroll-margin-top: 8rem;
}

.phm-register-panel-focus-target:focus-visible,
.phm-register-panel-focus-target:focus {
    box-shadow:
        0 0 0 4px rgba(31, 122, 182, 0.18),
        0 18px 38px var(--phm-shadow);
}

.phm-register-intro {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: start;
    margin-bottom: 1.25rem;
}

.phm-register-intro h2 {
    margin-bottom: 0.35rem;
    color: var(--phm-ink);
}

.phm-register-intro p {
    margin-bottom: 0;
    color: var(--phm-ink-soft);
    max-width: 44rem;
}

.phm-register-form {
    display: grid;
    gap: 1.2rem;
}

.phm-register-section {
    display: grid;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 1.25rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(243, 250, 251, 0.94));
    border: 1px solid rgba(54, 110, 143, 0.1);
}

.phm-register-section-header h3 {
    margin-bottom: 0.35rem;
    color: var(--phm-ink);
}

.phm-register-section-header p {
    margin-bottom: 0;
    color: var(--phm-ink-soft);
}

.phm-register-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.phm-register-grid-single {
    grid-template-columns: 1fr;
}

.phm-register-field {
    display: grid;
    gap: 0.45rem;
}

.phm-register-field-wide {
    grid-column: 1 / -1;
}

.phm-register-field .form-label {
    margin-bottom: 0;
    color: var(--phm-ink);
    font-weight: 600;
}

.phm-register-field .form-control,
.phm-register-field .form-select {
    min-height: 3.35rem;
    border-radius: 1rem;
    border: 1px solid rgba(54, 110, 143, 0.18);
    background: rgba(255, 255, 255, 0.95);
    color: var(--phm-ink);
}

.phm-register-terms {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.1rem;
    border-radius: 1.15rem;
    background: linear-gradient(180deg, #eef8fd, #edf8f2);
}

.phm-register-terms strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--phm-ink);
}

.phm-register-terms span {
    color: var(--phm-ink-soft);
}

.phm-register-actions {
    display: flex;
    justify-content: flex-start;
}

.phm-create-home-page {
    padding: clamp(1rem, 2vw, 1.8rem) 0 3rem;
}

.phm-create-home-page .content.content-full {
    width: min(1480px, calc(100% - clamp(1.5rem, 5vw, 5rem)));
    margin: 0 auto;
}

.phm-create-home-shell {
    display: grid;
    gap: 1.5rem;
}

.phm-create-home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.95fr);
    gap: 1.5rem;
    padding: clamp(1.6rem, 2vw, 2.15rem);
    border-radius: 1.75rem;
    background: linear-gradient(135deg, rgba(21, 111, 167, 0.96), rgba(47, 155, 122, 0.92));
    color: #f5fffd;
    box-shadow: 0 28px 56px rgba(34, 103, 137, 0.16);
}

.phm-create-home-copy {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.phm-create-home-copy h1 {
    margin-bottom: 0;
    color: #f8ffff;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.04;
}

.phm-create-home-copy p {
    margin-bottom: 0;
    color: rgba(244, 255, 254, 0.9);
    max-width: 42rem;
}

.phm-create-home-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.phm-create-home-pills span {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f3fffd;
    font-size: 0.85rem;
    font-weight: 700;
}

.phm-create-home-media {
    position: relative;
    min-height: 280px;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.phm-create-home-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.phm-edit-home-hero {
    grid-template-columns: minmax(0, 1.28fr) minmax(300px, 0.82fr);
    gap: 1.1rem;
    padding: 1.2rem 1.25rem;
    align-items: center;
}

.phm-edit-home-hero .phm-create-home-copy {
    gap: 0.75rem;
}

.phm-edit-home-hero .phm-create-home-copy h1 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.phm-edit-home-hero .phm-create-home-copy p {
    max-width: 34rem;
}

.phm-edit-home-hero .phm-create-home-pills {
    gap: 0.55rem;
}

.phm-edit-home-hero .phm-create-home-pills span {
    padding: 0.45rem 0.75rem;
}

.phm-edit-home-media {
    min-height: 150px;
    max-height: 190px;
    border-radius: 1.3rem;
}

.phm-edit-home-media .phm-create-home-note {
    right: 0.75rem;
    bottom: 0.75rem;
    left: 0.75rem;
    gap: 0.25rem;
    padding: 0.7rem 0.8rem;
}

.phm-edit-home-media .phm-create-home-note span {
    line-height: 1.35;
}

.phm-create-home-note {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    display: grid;
    gap: 0.35rem;
    padding: 1rem 1.1rem;
    border-radius: 1.15rem;
    background: rgba(19, 50, 74, 0.68);
    backdrop-filter: blur(10px);
    color: #effcf9;
}

.phm-login-page {
    padding: clamp(1rem, 2vw, 1.8rem) 0 3rem;
}

.phm-login-page .content.content-full {
    width: min(1480px, calc(100% - clamp(1.5rem, 5vw, 5rem)));
    margin: 0 auto;
}

.phm-login-shell {
    display: grid;
    gap: 1.5rem;
}

.phm-login-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.95fr);
    gap: 1.5rem;
    padding: clamp(1.6rem, 2vw, 2.15rem);
    border-radius: 1.75rem;
    background: linear-gradient(135deg, rgba(20, 104, 160, 0.95), rgba(43, 154, 124, 0.9));
    color: #f5fffd;
    box-shadow: 0 28px 56px rgba(34, 103, 137, 0.16);
}

.phm-login-copy {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.phm-login-copy h1 {
    margin-bottom: 0;
    color: #f8ffff;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.04;
}

.phm-login-copy p {
    margin-bottom: 0;
    color: rgba(244, 255, 254, 0.88);
    max-width: 42rem;
}

.phm-login-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.phm-login-pills span {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f3fffd;
    font-size: 0.85rem;
    font-weight: 700;
}

.phm-login-media {
    position: relative;
    min-height: 280px;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.phm-login-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.phm-login-note {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    display: grid;
    gap: 0.35rem;
    padding: 1rem 1.1rem;
    border-radius: 1.15rem;
    background: rgba(19, 50, 74, 0.68);
    backdrop-filter: blur(10px);
    color: #effcf9;
}

.phm-login-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.35rem;
}

.phm-login-panel {
    display: grid;
    gap: 1.25rem;
    padding: clamp(1.4rem, 2vw, 1.9rem);
    border-radius: 1.45rem;
    background: var(--phm-surface);
    border: 1px solid var(--phm-border);
    box-shadow: 0 18px 38px var(--phm-shadow);
}

.phm-login-panel-focus-target {
    outline: none;
    scroll-margin-top: 8rem;
}

.phm-login-panel-focus-target:focus-visible,
.phm-login-panel-focus-target:focus {
    box-shadow:
        0 0 0 4px rgba(31, 122, 182, 0.18),
        0 18px 38px var(--phm-shadow);
}

#maintenance-reminders {
    outline: none;
    scroll-margin-top: 8rem;
}

.phm-login-panel-header h2 {
    margin-bottom: 0.35rem;
    color: var(--phm-ink);
}

.phm-login-panel-header p {
    margin-bottom: 0;
    color: var(--phm-ink-soft);
}

.phm-login-form {
    display: grid;
    gap: 1rem;
}

.phm-login-field {
    display: grid;
    gap: 0.45rem;
}

.phm-login-field .form-label {
    margin-bottom: 0;
    color: var(--phm-ink);
    font-weight: 700;
}

.phm-login-field .form-control {
    min-height: 3.65rem;
    border-radius: 1rem;
    border-color: rgba(54, 110, 143, 0.16);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 252, 0.96));
}

.phm-login-remember {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--phm-ink);
    font-weight: 600;
}

.phm-login-link-list,
.phm-login-support-list,
.phm-login-external-actions {
    display: grid;
    gap: 0.85rem;
}

.phm-login-link-list a {
    color: var(--phm-blue-deep);
    font-weight: 600;
}

.phm-login-support-card {
    display: grid;
    gap: 0.55rem;
    padding: 1rem 1.05rem;
    border-radius: 1rem;
    background: linear-gradient(180deg, #f2fafe, #eef9f4);
}

.phm-login-support-card strong,
.phm-login-external h3 {
    color: var(--phm-ink);
}

.phm-login-support-card span {
    color: var(--phm-ink-soft);
}

.phm-create-home-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 1.35rem;
    align-items: start;
}

.phm-create-home-main {
    min-width: 0;
    display: grid;
    gap: 1.35rem;
    align-content: start;
}

.phm-create-home-aside {
    position: sticky;
    top: 6.75rem;
}

.phm-create-home-aside-card,
.phm-create-home-section,
.phm-room-modal {
    border-radius: 1.45rem;
    background: var(--phm-surface);
    border: 1px solid var(--phm-border);
    box-shadow: 0 18px 38px var(--phm-shadow);
}

.phm-create-home-form {
    display: grid;
    gap: 1.25rem;
}

.phm-create-home-section {
    display: grid;
    gap: 1.1rem;
    padding: clamp(1.35rem, 2vw, 1.85rem);
}

.phm-create-home-section-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: start;
}

.phm-create-home-section-header h2,
.phm-create-home-aside-card h2 {
    margin-bottom: 0.4rem;
    color: var(--phm-ink);
}

.phm-create-home-section-header p,
.phm-create-home-aside-card p {
    margin-bottom: 0;
    color: var(--phm-ink-soft);
}

.phm-create-home-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.phm-structure-asset-entry-grid {
    align-items: start;
}

.phm-structure-asset-entry-card {
    align-content: start;
    padding: 1.2rem;
    border-radius: 1.2rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 251, 252, 0.95));
    border: 1px solid rgba(54, 110, 143, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.phm-create-home-field {
    display: grid;
    gap: 0.45rem;
}

.phm-create-home-field-wide {
    grid-column: 1 / -1;
}

.phm-create-home-field .form-label {
    margin-bottom: 0;
    color: var(--phm-ink);
    font-weight: 700;
}

.phm-create-home-field .form-control,
.phm-create-home-field .form-select {
    min-height: 3.65rem;
    border-radius: 1rem;
    border-color: rgba(54, 110, 143, 0.16);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 252, 0.96));
}

.phm-create-home-error {
    display: none;
}

.phm-room-card-list {
    display: grid;
    gap: 1rem;
}

.phm-room-planning-card {
    display: grid;
    gap: 1rem;
    padding: 1.2rem;
    border-radius: 1.2rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 251, 252, 0.95));
    border: 1px solid rgba(54, 110, 143, 0.1);
}

.phm-room-planning-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: start;
}

.phm-room-planning-header h3 {
    margin-bottom: 0.2rem;
    color: var(--phm-ink);
    font-size: 1.15rem;
}

.phm-room-planning-header p {
    margin-bottom: 0;
    color: var(--phm-ink-soft);
}

.phm-room-planning-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

.phm-room-planning-metrics > div,
.phm-create-home-summary-item,
.phm-create-home-tip-list article {
    display: grid;
    gap: 0.25rem;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    background: linear-gradient(180deg, #f2fafe, #eef9f4);
}

.phm-room-planning-metrics strong,
.phm-create-home-summary-item strong {
    color: var(--phm-ink);
    font-size: 1rem;
}

.phm-room-planning-metrics span,
.phm-create-home-summary-item span,
.phm-create-home-tip-list span {
    color: var(--phm-ink-soft);
}

.phm-create-home-actions {
    display: flex;
    gap: 0.85rem;
    align-items: center;
}

.phm-status-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    background: rgba(47, 155, 122, 0.14);
    border: 1px solid rgba(47, 155, 122, 0.2);
    color: #1f775d;
    font-size: 0.84rem;
    font-weight: 700;
    white-space: nowrap;
}

.phm-status-chip-link {
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.phm-status-chip-link:hover,
.phm-status-chip-link:focus {
    background: rgba(27, 104, 167, 0.14);
    border-color: rgba(27, 104, 167, 0.24);
    box-shadow: 0 8px 20px rgba(27, 104, 167, 0.12);
    color: #1b68a7;
    transform: translateY(-1px);
}

.phm-inline-status-banner {
    display: grid;
    gap: 0.3rem;
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    background: linear-gradient(180deg, #edf9f4, #e8f5fb);
    border: 1px solid rgba(47, 155, 122, 0.16);
}

.phm-inline-status-banner strong {
    color: var(--phm-ink);
}

.phm-inline-status-banner span {
    color: var(--phm-ink-soft);
}

.phm-edit-home-validation-summary {
    margin-bottom: 1rem;
}

.phm-edit-home-validation-summary.validation-summary-valid {
    display: none;
}

.phm-create-home-aside-card {
    display: grid;
    gap: 1rem;
    padding: 1.5rem;
}

.phm-create-home-summary-list,
.phm-create-home-tip-list {
    display: grid;
    gap: 0.85rem;
}

.phm-create-home-tip-list strong {
    color: var(--phm-ink);
}

.phm-room-modal .modal-header,
.phm-room-modal .modal-footer {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.phm-room-modal .modal-body {
    padding: 0 1.5rem 1.5rem;
}

.phm-room-modal-dialog {
    max-width: min(960px, calc(100vw - 2rem));
}

.phm-room-modal {
    overflow-y: auto;
}

.phm-room-modal-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.08fr);
    min-height: min(560px, calc(100vh - 3rem));
    max-height: calc(100vh - 3rem);
}

.phm-room-modal-visual {
    position: relative;
    min-height: 100%;
    background: #123c55;
    overflow: hidden;
}

.phm-room-modal-visual-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.phm-room-modal-overlay {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 1rem;
    align-content: end;
    min-height: 100%;
    padding: 1.7rem;
    background: linear-gradient(180deg, rgba(7, 34, 56, 0.08), rgba(8, 36, 59, 0.84));
    color: #f4fffd;
}

.phm-room-modal-overlay h5 {
    color: #f8ffff;
    font-size: clamp(1.35rem, 1.75vw, 1.7rem);
    line-height: 1.1;
}

.phm-room-modal-overlay p {
    margin-bottom: 0;
    color: rgba(243, 255, 252, 0.88);
}

.phm-room-modal-tip-list {
    display: grid;
    gap: 0.85rem;
}

.phm-room-modal-tip-list article {
    display: grid;
    gap: 0.35rem;
    padding: 0.9rem 0.95rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.phm-room-modal-tip-list strong {
    color: #f7fffd;
}

.phm-room-modal-tip-list span {
    color: rgba(240, 255, 251, 0.84);
    font-size: 0.92rem;
}

.phm-room-modal-panel {
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-width: 0;
    min-height: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 249, 251, 0.95));
}

.phm-room-modal-header {
    padding: 1.45rem 1.55rem 0.85rem;
    align-items: start;
}

.phm-room-modal-header .modal-title {
    color: var(--phm-ink);
    font-size: 1.35rem;
}

.phm-room-modal-header .phm-section-kicker {
    color: var(--phm-blue-deep);
}

.phm-create-home-section-header .phm-section-kicker,
.phm-create-home-aside-card .phm-section-kicker {
    color: var(--phm-blue-deep);
}

.phm-room-modal-subtitle {
    margin-bottom: 0;
    color: #4d6780;
    max-width: 32rem;
}

.phm-room-modal-body {
    padding: 0 1.55rem 1.15rem;
    overflow-y: auto;
    min-height: 0;
}

.phm-room-modal-form {
    display: grid;
    gap: 1rem;
}

.phm-room-modal-field-help {
    color: var(--phm-ink-soft);
    font-size: 0.92rem;
    line-height: 1.45;
}

.phm-room-modal-dimension-block {
    display: grid;
    gap: 1rem;
    padding: 1.15rem;
    border-radius: 1.15rem;
    background: linear-gradient(180deg, #f3fafe, #eef8f3);
    border: 1px solid rgba(54, 110, 143, 0.1);
}

.phm-room-modal-dimension-header h6 {
    margin-bottom: 0.35rem;
    color: var(--phm-ink);
    font-size: 1rem;
}

.phm-room-modal-dimension-header p {
    margin-bottom: 0;
    color: var(--phm-ink-soft);
}

.phm-room-modal-footer {
    padding: 0.85rem 1.55rem 1.3rem;
}

.phm-room-dimension-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.phm-account-grid {
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    gap: 1.35rem;
    align-items: start;
}

.phm-account-sidebar {
    position: sticky;
    top: 6.75rem;
}

.phm-account-sidebar-card,
.phm-account-panel,
.phm-confirmation-card {
    padding: 1.5rem;
    border-radius: 1.45rem;
    background: var(--phm-surface);
    border: 1px solid var(--phm-border);
    box-shadow: 0 18px 38px var(--phm-shadow);
}

.phm-account-panel {
    padding: clamp(1.45rem, 2vw, 2rem);
}

.phm-account-sidebar-card {
    display: grid;
    gap: 1rem;
}

.phm-account-sidebar-card h2,
.phm-confirmation-card h2 {
    margin-bottom: 0;
    color: var(--phm-ink);
}

.phm-account-sidebar-card p,
.phm-confirmation-card p {
    margin-bottom: 0;
    color: var(--phm-ink-soft);
}

.phm-account-nav {
    display: grid;
    gap: 0.7rem;
}

.phm-account-nav-link {
    display: grid;
    grid-template-columns: 2.75rem minmax(0, 1fr);
    gap: 0.85rem;
    align-items: center;
    padding: 0.9rem 0.95rem;
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(54, 110, 143, 0.12);
    color: var(--phm-ink);
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.phm-account-nav-link:hover,
.phm-account-nav-link:focus,
.phm-account-nav-link.active {
    color: var(--phm-blue-deep);
    background: linear-gradient(135deg, rgba(31, 122, 182, 0.12), rgba(47, 155, 122, 0.12));
    border-color: rgba(31, 122, 182, 0.18);
    box-shadow: 0 14px 28px rgba(35, 91, 124, 0.1);
    transform: translateY(-1px);
}

.phm-account-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.95rem;
    background: linear-gradient(135deg, rgba(31, 122, 182, 0.14), rgba(47, 155, 122, 0.16));
    color: var(--phm-blue-deep);
    font-size: 1rem;
}

.phm-account-nav-copy {
    display: grid;
    gap: 0.25rem;
}

.phm-account-nav-copy strong {
    color: inherit;
    font-size: 0.96rem;
}

.phm-account-nav-copy small {
    color: var(--phm-ink-soft);
    font-size: 0.8rem;
    line-height: 1.35;
}

.phm-account-main {
    min-width: 0;
}

.phm-account-panel > h3:first-of-type {
    display: none;
}

.phm-account-content {
    display: grid;
    gap: 1.4rem;
}

.phm-account-content > .alert {
    margin-bottom: 0;
}

.phm-account-intro {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: start;
}

.phm-account-intro h3 {
    display: block !important;
    margin-bottom: 0.45rem;
    color: var(--phm-ink);
}

.phm-account-intro p {
    margin-bottom: 0;
    color: var(--phm-ink-soft);
    max-width: 44rem;
}

.phm-account-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    background: rgba(47, 155, 122, 0.12);
    color: #1f775d;
    font-weight: 700;
    white-space: nowrap;
}

.phm-account-form {
    display: grid;
    gap: 1.2rem;
}

.phm-account-form-section {
    display: grid;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 1.2rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 251, 252, 0.94));
    border: 1px solid rgba(54, 110, 143, 0.1);
}

.phm-account-form-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: start;
}

.phm-account-form-header h4 {
    margin-bottom: 0.35rem;
    color: var(--phm-ink);
}

.phm-account-form-header p {
    margin-bottom: 0;
    color: var(--phm-ink-soft);
}

.phm-account-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.phm-account-field {
    display: grid;
    gap: 0.45rem;
}

.phm-account-field-wide {
    grid-column: 1 / -1;
}

.phm-account-field .form-label {
    margin-bottom: 0;
    color: var(--phm-ink);
    font-weight: 600;
}

.phm-account-field .form-control,
.phm-account-panel .form-control,
.phm-account-panel .form-select {
    min-height: 3.35rem;
    border-radius: 1rem;
    border: 1px solid rgba(54, 110, 143, 0.18);
    background: rgba(255, 255, 255, 0.95);
    color: var(--phm-ink);
}

.phm-account-panel .input-group-text {
    border-radius: 1rem;
    background: rgba(31, 122, 182, 0.08);
    border: 1px solid rgba(54, 110, 143, 0.18);
}

.phm-account-switch-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.8rem;
    align-items: center;
}

.phm-account-switch-note {
    color: var(--phm-ink-soft);
    font-size: 0.9rem;
}

.phm-account-inline-note {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.05rem;
    border-radius: 1.05rem;
    background: linear-gradient(180deg, #eef8fd, #edf8f2);
}

.phm-account-inline-note strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--phm-ink);
}

.phm-account-inline-note span {
    color: var(--phm-ink-soft);
}

.phm-account-note-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.phm-account-linked-time {
    font-size: 0.88rem;
    color: var(--phm-ink-soft);
}

.phm-account-actions {
    display: flex;
    justify-content: flex-start;
}

.phm-account-status {
    border-radius: 1rem;
    border: 1px solid rgba(54, 110, 143, 0.14);
    box-shadow: 0 10px 24px rgba(35, 91, 124, 0.08);
}

.phm-account-code-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.phm-account-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.96);
    border: 1px dashed rgba(31, 122, 182, 0.28);
    color: var(--phm-blue-deep);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.phm-account-panel .row {
    margin-right: 0;
    margin-left: 0;
}

.phm-account-panel .row > [class*="col-"] {
    padding-right: 0;
    padding-left: 0;
}

.phm-confirmation-shell {
    display: grid;
    gap: 1.35rem;
}

.phm-confirmation-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.phm-confirmation-steps {
    display: grid;
    gap: 0.85rem;
    margin-top: 1rem;
}

.phm-confirmation-step {
    display: grid;
    grid-template-columns: 2.5rem minmax(0, 1fr);
    gap: 0.9rem;
    align-items: start;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    background: linear-gradient(180deg, #f2fafe, #edf7f3);
}

.phm-confirmation-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--phm-blue), var(--phm-green));
    color: #f7fffe;
    font-size: 1rem;
    font-weight: 700;
}

.phm-confirmation-step-copy {
    color: var(--phm-ink-soft);
}

.phm-confirmation-step-email {
    color: var(--phm-ink);
    font-weight: 700;
}

.phm-user-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    height: 3rem;
    min-height: auto;
    padding: 0.25rem 1rem 0.25rem 0.3rem;
    border-radius: 999px;
    border: 1px solid rgba(54, 110, 143, 0.18);
    background: rgba(255, 255, 255, 0.85);
    color: var(--phm-ink);
    font-weight: 600;
    font-size: 0.85rem;
    max-width: none;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.phm-user-trigger:hover,
.phm-user-trigger:focus {
    background: #fff;
    border-color: rgba(31, 122, 182, 0.4);
    color: var(--phm-ink);
}

.phm-user-trigger-avatar {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #cfe6f5, #a8d6c8);
    color: var(--phm-blue-deep);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 800;
    flex: 0 0 auto;
    object-fit: cover;
    overflow: hidden;
}

img.phm-user-trigger-avatar {
    background: rgba(255, 255, 255, 0.85);
}

.phm-user-trigger-avatar--guest {
    width: 2.4rem;
    height: 2.4rem;
}

.phm-user-trigger-chev {
    color: var(--phm-ink-soft);
    font-size: 0.7rem;
    margin-left: 0.1rem;
}

.phm-inline-icon-gap {
    margin-left: 0.25rem;
}

.phm-pre-wrap {
    white-space: pre-wrap;
}

.phm-id-tag-upload-section {
    margin-bottom: 1.25rem;
    padding: 1rem;
    border: 2px dashed var(--bs-border-color, #dee2e6);
    border-radius: 0.5rem;
    background: var(--bs-tertiary-bg, #f8f9fa);
}

.phm-id-tag-input {
    max-width: 320px;
}

.phm-hero-banner {
    position: relative;
    overflow: hidden;
    background: #123c55;
}

.phm-hero-banner-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.phm-hero-banner-overlay {
    position: relative;
    z-index: 1;
}

.phm-user-trigger-name {
    max-width: 11rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 1439px) {
    .phm-header-shell {
        gap: 0.75rem;
        padding: 0.7rem 0.85rem;
    }

    .phm-brand-tagline,
    .phm-header-search {
        display: none;
    }

    .phm-header-search-icon-btn {
        display: inline-flex;
    }

    .phm-shell .nav-main-horizontal .nav-main-link {
        padding: 0.5rem 0.7rem;
        font-size: 0.86rem;
    }

    .phm-user-trigger .phm-user-trigger-name {
        display: none !important;
    }

    .phm-user-trigger .phm-user-trigger-chev {
        display: inline-flex !important;
        align-items: center;
    }

    .phm-user-trigger {
        width: auto;
        min-width: 4.15rem;
        padding: 0.25rem 0.75rem 0.25rem 0.3rem;
        justify-content: center;
        gap: 0.45rem;
    }
}

/* Compact desktop / large tablet — drop brand tagline, collapse search to icon button. */
@media (max-width: 1199px) {
    .phm-header-shell {
        gap: 0.85rem;
        padding: 0.7rem 0.9rem;
    }

    .phm-shell .nav-main-horizontal .nav-main-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.88rem;
    }

    .phm-brand-tagline {
        display: none;
    }

    .phm-header-search {
        display: none;
    }

    .phm-header-search-icon-btn {
        display: inline-flex;
    }

    .phm-user-trigger-name {
        max-width: 8.5rem;
    }
}

@media (max-width: 1199px) {
    .phm-stat-grid,
    .phm-feature-grid,
    .phm-phase-grid,
    .phm-search-grid,
    .phm-workspace-grid,
    .phm-contact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .phm-home-grid {
        grid-template-columns: 1fr;
    }

    .phm-account-grid {
        grid-template-columns: 1fr;
    }

    .phm-account-sidebar {
        position: static;
    }

    .phm-create-home-layout {
        grid-template-columns: 1fr;
    }

    .phm-create-home-aside {
        position: static;
    }

    .phm-login-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991px) {
    .phm-hero-card,
    .phm-landing-hero,
    .phm-landing-story,
    .phm-modal-hero,
    .phm-modal-grid,
    .phm-room-hero,
    .phm-account-hero,
    .phm-confirmation-hero,
    .phm-create-home-hero,
    .phm-login-hero,
    .phm-register-hero,
    .phm-room-modal-layout,
    .phm-confirmation-grid {
        grid-template-columns: 1fr;
    }

    .phm-footer-shell {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .phm-footer-top {
        flex-direction: column;
    }

    /* Tablet — nav collapses into hamburger drawer (drawer styles already defined). */
    .phm-header-shell {
        gap: 0.5rem;
        padding: 0.6rem 0.75rem;
    }

    .phm-header-search .input-group {
        min-width: 0;
    }
}

@media (max-width: 767px) {
    .phm-section,
    .phm-hero-card,
    .phm-landing-hero,
    .phm-account-hero,
    .phm-create-home-hero,
    .phm-login-hero,
    .phm-confirmation-hero,
    .phm-register-hero {
        padding: 1.2rem;
    }

    .phm-stat-grid,
    .phm-feature-grid,
    .phm-phase-grid,
    .phm-search-grid,
    .phm-workspace-grid,
    .phm-dashboard-subnav,
    .phm-contact-grid,
    .phm-privacy-detail-grid,
    .phm-mini-grid,
    .phm-home-metrics,
    .phm-room-mini-grid,
    .phm-account-form-grid,
    .phm-account-code-grid,
    .phm-create-home-grid,
    .phm-room-planning-metrics,
    .phm-room-dimension-grid,
    .phm-register-grid,
    .phm-register-checklist {
        grid-template-columns: 1fr;
    }

    .phm-footer-shell {
        grid-template-columns: 1fr;
    }

    .phm-footer-top-copy h3 {
        font-size: 1.02rem;
    }

    .phm-room-modal-layout {
        min-height: 0;
    }

    .phm-room-modal-visual {
        min-height: 260px;
    }

    .phm-room-modal-overlay,
    .phm-room-modal-header,
    .phm-room-modal-body,
    .phm-room-modal-footer {
        padding-left: 1.2rem;
        padding-right: 1.2rem;
    }

    .phm-section-header,
    .phm-home-heading,
    .phm-account-intro,
    .phm-account-inline-note,
    .phm-account-switch-row,
    .phm-create-home-section-header,
    .phm-room-planning-header,
    .phm-login-remember,
    .phm-register-intro,
    .phm-register-terms {
        flex-direction: column;
    }

    .phm-footer-shell {
        grid-template-columns: 1fr;
    }

    .phm-account-note-actions {
        width: 100%;
        justify-content: space-between;
    }

    .phm-account-shell .content.content-full {
        width: min(100%, calc(100% - 1rem));
    }

    .phm-create-home-page .content.content-full {
        width: min(100%, calc(100% - 1rem));
    }

    .phm-login-page .content.content-full {
        width: min(100%, calc(100% - 1rem));
    }

    /* Phone — keep horizontal row, drop guest ghost CTA, shrink primary CTA. */
    .phm-header-shell {
        padding: 0.6rem 0.75rem;
        gap: 0.4rem;
    }

    .phm-header-cta-ghost {
        display: none;
    }

    .phm-header-cta-primary {
        padding: 0 0.85rem;
        font-size: 0.8rem;
    }

    .phm-brand-title {
        font-size: 0.9rem;
        line-height: 1;
    }
}

/* Small phone — drop the user name and chevron, render the user pill as a circle. */
@media (max-width: 575px) {
    .phm-user-trigger .phm-user-trigger-name,
    .phm-user-trigger .phm-user-trigger-chev {
        display: none !important;
    }

    .phm-user-trigger {
        width: 3rem;
        padding: 0;
        justify-content: center;
        gap: 0;
    }

    .phm-brand-title {
        font-size: 0.78rem;
        letter-spacing: 0;
    }

    .phm-brand-mark {
        width: 2.6rem;
        height: 2.6rem;
    }
}

.phm-floor-planner {
    display: grid;
    gap: 1rem;
}

.phm-floor-planner-entry {
    display: flex;
    gap: 1rem;
    align-items: end;
    flex-wrap: wrap;
}

.phm-floor-pill-list {
    display: grid;
    gap: 0.75rem;
}

.phm-floor-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 1rem;
    background: rgba(248, 250, 252, 0.88);
}

.phm-floor-pill strong,
.phm-room-dimension-summary strong {
    color: #0f172a;
}

.phm-floor-pill span {
    display: block;
    color: #64748b;
    font-size: 0.92rem;
}

.phm-room-unit-toggle {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.phm-room-unit-toggle .btn {
    min-width: 3.5rem;
}

.phm-room-dimension-summary {
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    background: rgba(226, 238, 245, 0.78);
    color: #315f84;
}

@media (max-width: 767.98px) {
    .phm-floor-planner-entry {
        flex-direction: column;
        align-items: stretch;
    }

    .phm-floor-pill {
        flex-direction: column;
        align-items: flex-start;
    }
}

.phm-vendor-card-list {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.phm-vendor-card {
    border: 1px solid rgba(20, 57, 91, 0.12);
    border-radius: 1.5rem;
    background: #fff;
    box-shadow: 0 1.25rem 2.5rem rgba(16, 24, 40, 0.08);
    padding: 1.5rem;
}

.phm-vendor-card-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.phm-vendor-card-header h3,
.phm-vendor-form-card h3 {
    margin: 0;
    color: #14395b;
}

.phm-vendor-details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.5rem;
    margin-bottom: 1rem;
}

.phm-vendor-label {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #54708b;
    margin-bottom: 0.25rem;
}

.phm-vendor-notes {
    margin-bottom: 1rem;
    color: #41586f;
}

.phm-home-vendor-card-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.phm-home-vendor-card {
    padding: 1rem 1rem 1.1rem;
    border-radius: 1.2rem;
    box-shadow: 0 0.8rem 1.6rem rgba(16, 24, 40, 0.06);
}

.phm-home-vendor-card .phm-vendor-card-header {
    margin-bottom: 0.75rem;
}

.phm-home-vendor-card .phm-vendor-card-header h3 {
    font-size: 1.05rem;
    line-height: 1.2;
}

.phm-home-vendor-card .phm-record-badges {
    gap: 0.4rem;
}

.phm-home-vendor-card .phm-record-badge {
    font-size: 0.72rem;
    padding: 0.22rem 0.5rem;
}

.phm-home-vendor-card .phm-vendor-details-grid {
    gap: 0.7rem 1rem;
    margin-bottom: 0.75rem;
}

.phm-home-vendor-card .phm-vendor-details-grid > div {
    min-width: 0;
}

.phm-home-vendor-card .phm-vendor-label {
    font-size: 0.68rem;
    margin-bottom: 0.18rem;
}

.phm-home-vendor-card .phm-vendor-details-grid strong,
.phm-home-vendor-card .phm-vendor-notes,
.phm-home-vendor-card details summary,
.phm-home-vendor-card .phm-inline-status-banner,
.phm-home-vendor-card .phm-create-home-field .form-label,
.phm-home-vendor-card .phm-checkbox-row,
.phm-home-vendor-card .btn {
    font-size: 0.9rem;
}

.phm-home-vendor-card .phm-vendor-notes {
    margin-bottom: 0.75rem;
}

.phm-home-vendor-card .phm-vendor-details-grid strong,
.phm-home-vendor-card .phm-vendor-notes {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.phm-home-vendor-card details {
    margin-top: 0.75rem;
}

.phm-home-vendor-card .phm-vendor-management-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
}

.phm-home-vendor-card .phm-create-home-grid {
    gap: 0.75rem 1rem;
}

.phm-home-vendor-card .form-control,
.phm-home-vendor-card .form-select {
    min-height: 2.55rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    font-size: 0.95rem;
}

.phm-home-vendor-card .phm-vendor-inline-form,
.phm-home-vendor-card .phm-vendor-remove-form {
    width: 100%;
}

.phm-home-vendor-card .phm-vendor-remove-form {
    display: block;
}

.phm-home-vendor-card .phm-card-actions,
.phm-home-vendor-card .phm-vendor-remove-form .btn {
    width: 100%;
}

.phm-home-vendor-card .phm-card-actions .btn,
.phm-home-vendor-card .phm-vendor-remove-form .btn {
    width: 100%;
}

.phm-vendor-inline-save-status {
    padding: 0.45rem 0.7rem;
    border-radius: 0.8rem;
    font-size: 0.82rem;
    line-height: 1.35;
    border: 1px solid transparent;
}

.phm-vendor-inline-save-status.is-success {
    background: rgba(201, 239, 226, 0.65);
    border-color: rgba(67, 157, 125, 0.2);
    color: #225b49;
}

.phm-vendor-inline-save-status.is-error {
    background: rgba(255, 232, 236, 0.75);
    border-color: rgba(216, 104, 130, 0.2);
    color: #8c2444;
}

.phm-vendor-management-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.phm-vendor-inline-form,
.phm-vendor-form-card {
    display: grid;
    gap: 1rem;
    border: 1px solid rgba(20, 57, 91, 0.12);
    border-radius: 1.5rem;
    background: linear-gradient(180deg, rgba(244, 249, 252, 0.92), rgba(255, 255, 255, 0.98));
    box-shadow: 0 1rem 2rem rgba(16, 24, 40, 0.06);
    padding: 1.5rem;
}

.phm-vendor-remove-form {
    display: flex;
    align-items: flex-end;
}

.phm-checkbox-row {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #41586f;
    font-weight: 600;
}

.phm-checkbox-row input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: #1f8acb;
}

@media (max-width: 1499.98px) {
    .phm-appliance-records-card .phm-room-record-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .phm-appliance-records-card .phm-record-badges {
        display: grid;
        grid-template-columns: repeat(2, max-content);
        justify-content: start;
        align-items: start;
    }

    .phm-appliance-records-card .phm-room-record-item-with-media {
        grid-template-columns: minmax(0, 1fr) 132px;
        gap: 0.65rem;
    }

    .phm-appliance-records-card .phm-appliance-record-image img {
        height: 96px;
    }
}

@media (min-width: 1200px) {
    .phm-parts-search-layout {
        grid-template-columns: minmax(0, 1.1fr) minmax(22rem, 0.9fr);
        align-items: start;
    }
}

@media (max-width: 991.98px) {
    .phm-appliance-records-card .phm-room-record-list {
        grid-template-columns: 1fr;
    }

    .phm-home-vendor-card-list,
    .phm-vendor-management-grid,
    .phm-vendor-details-grid {
        grid-template-columns: 1fr;
    }

    .phm-vendor-remove-form {
        align-items: stretch;
    }
}
.phm-admin-shell {
    display: grid;
    gap: 1.5rem;
}

.content.phm-admin-content,
.content.phm-search-page {
    padding-bottom: 1.5rem;
}

#page-container.main-content-boxed > #main-container .content.phm-admin-content {
    max-width: 1540px;
}

.phm-admin-hero,
.phm-admin-section,
.phm-admin-table-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 250, 253, 0.94));
    border: 1px solid rgba(134, 187, 214, 0.28);
    border-radius: 1.35rem;
    box-shadow: 0 18px 36px rgba(24, 50, 74, 0.08);
}

.phm-admin-hero {
    padding: 1.75rem 1.85rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-start;
}

.phm-admin-hero h1 {
    margin: 0 0 0.55rem;
    color: #0b4f87;
}

.phm-admin-hero p {
    margin: 0;
    max-width: 52rem;
    color: #5f778d;
}

.phm-admin-eyebrow {
    display: inline-flex;
    margin-bottom: 0.7rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(13, 109, 184, 0.12);
    color: #0b4f87;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.phm-admin-stamp {
    padding: 0.65rem 0.85rem;
    border-radius: 0.95rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(134, 187, 214, 0.32);
    color: #5f778d;
    font-size: 0.9rem;
    font-weight: 600;
}

.phm-admin-section {
    padding: 1.45rem;
}

.phm-admin-section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.phm-admin-section-head h2,
.phm-admin-section-head h3 {
    margin: 0;
    color: #0b4f87;
}

.phm-admin-section-head span {
    color: #698296;
    font-size: 0.92rem;
    font-weight: 600;
}

.phm-admin-section-head--compact {
    margin-bottom: 0.9rem;
}

.phm-admin-kpi-grid,
.phm-admin-table-grid,
.phm-admin-link-grid,
.phm-admin-trend-grid,
.phm-admin-alert-grid {
    display: grid;
    gap: 1rem;
}

.phm-admin-kpi-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.phm-admin-kpi-grid--four {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.phm-admin-kpi-card {
    padding: 1rem;
    border-radius: 1.05rem;
    border: 1px solid rgba(134, 187, 214, 0.28);
    background: rgba(255, 255, 255, 0.88);
}

.phm-admin-kpi-label {
    display: block;
    margin-bottom: 0.45rem;
    color: #698296;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.phm-admin-kpi-card strong {
    display: block;
    font-size: clamp(1.5rem, 2vw, 2rem);
    line-height: 1.05;
    color: #0b4f87;
}

.phm-admin-kpi-card p {
    margin: 0.55rem 0 0;
    color: #61798e;
    font-size: 0.92rem;
}

.phm-admin-kpi-badges {
    margin-top: 0.6rem;
}

.phm-admin-kpi-badges + p {
    margin-top: 0.7rem;
}

.phm-admin-table-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    margin-top: 1rem;
}

.phm-admin-table-card {
    padding: 1.1rem;
}

.phm-admin-table {
    width: 100%;
    border-collapse: collapse;
}

.phm-admin-table th,
.phm-admin-table td {
    padding: 0.72rem 0.4rem;
    border-top: 1px solid rgba(134, 187, 214, 0.24);
    text-align: left;
    vertical-align: top;
}

.phm-admin-table thead th {
    border-top: 0;
    color: #5e788f;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.phm-admin-table tbody td {
    color: #18324a;
    font-size: 0.94rem;
}

.phm-admin-table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(134, 187, 214, 0.24);
    color: #61798e;
    font-size: 0.9rem;
    font-weight: 600;
}

.phm-admin-pagination {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.phm-admin-link-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.phm-admin-alert-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    margin-bottom: 1rem;
}

.phm-admin-alert-card {
    padding: 1rem 1.05rem;
    border-radius: 1.05rem;
    border: 1px solid rgba(134, 187, 214, 0.28);
    background: rgba(255, 255, 255, 0.92);
}

.phm-admin-alert-card strong {
    display: block;
    margin-bottom: 0.35rem;
}

.phm-admin-alert-card p {
    margin: 0;
    color: #61798e;
}

.phm-admin-alert-card--success {
    background: rgba(233, 248, 241, 0.92);
    border-color: rgba(47, 155, 122, 0.24);
}

.phm-admin-alert-card--warning {
    background: rgba(255, 247, 229, 0.95);
    border-color: rgba(201, 122, 20, 0.22);
}

.phm-admin-alert-card--danger {
    background: rgba(255, 239, 243, 0.94);
    border-color: rgba(194, 59, 82, 0.24);
}

.phm-admin-alert-card--info {
    background: rgba(237, 246, 255, 0.94);
    border-color: rgba(13, 109, 184, 0.22);
}

.phm-admin-range-toggle {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.phm-admin-range-toggle .btn {
    min-width: 5.4rem;
}

.phm-admin-trend-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin-bottom: 1rem;
}

.phm-admin-trend-list {
    display: grid;
    gap: 0.55rem;
}

.phm-admin-trend-row {
    display: grid;
    grid-template-columns: 3.6rem minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    font-size: 0.9rem;
}

.phm-admin-trend-row span,
.phm-admin-trend-row strong {
    color: #4f6880;
}

.phm-admin-trend-bar-shell {
    height: 0.7rem;
    border-radius: 999px;
    background: rgba(191, 221, 241, 0.45);
    overflow: hidden;
}

.phm-admin-trend-meter {
    display: block;
    width: 100%;
    height: 100%;
    appearance: none;
    border: 0;
    border-radius: inherit;
    background: transparent;
}

.phm-admin-trend-meter::-webkit-progress-bar {
    background: rgba(191, 221, 241, 0.45);
}

.phm-admin-trend-meter::-webkit-progress-value {
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(13, 109, 184, 0.9), rgba(47, 155, 122, 0.9));
}

.phm-admin-trend-meter::-moz-progress-bar {
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(13, 109, 184, 0.9), rgba(47, 155, 122, 0.9));
}

.phm-admin-table-note {
    margin-top: 0.25rem;
    color: #61798e;
    font-size: 0.86rem;
}

.phm-admin-link-card {
    display: grid;
    gap: 0.4rem;
    padding: 1rem;
    border-radius: 1.05rem;
    border: 1px solid rgba(134, 187, 214, 0.28);
    background: rgba(255, 255, 255, 0.9);
    color: inherit;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.phm-admin-link-card strong {
    color: #0b4f87;
}

.phm-admin-link-card span {
    color: #61798e;
    font-size: 0.92rem;
}

.phm-admin-link-card:hover,
.phm-admin-link-card:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(13, 109, 184, 0.34);
    box-shadow: 0 12px 24px rgba(24, 50, 74, 0.1);
}

@media (max-width: 767.98px) {
    .phm-admin-hero,
    .phm-admin-section,
    .phm-admin-table-card {
        border-radius: 1.05rem;
    }

    .phm-admin-hero,
    .phm-admin-section {
        padding: 1.15rem;
    }
}
