:root {
    --phx-ink: #141210;
    --phx-muted: #6d645b;
    --phx-line: #eadfce;
    --phx-sand: #f7f1ea;
    --phx-paper: #fffdf9;
    --phx-gold: #c5a47e;
    --phx-gold-deep: #8a7358;
    --phx-shadow: 0 24px 60px rgba(20, 18, 16, 0.08);
}
.phx-portal {
    background:
        radial-gradient(ellipse 70% 45% at 100% -10%, rgba(197, 164, 126, 0.22), transparent 55%),
        radial-gradient(ellipse 50% 40% at 0% 100%, rgba(138, 115, 88, 0.08), transparent 50%),
        linear-gradient(165deg, #fbf8f4 0%, #f3ebe2 48%, #efe6db 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--phx-ink);
}
.phx-portal-ready .phx-dash-metrics > article,
.phx-portal-ready .phx-dash-card,
.phx-portal-ready .portal-progress,
.phx-portal-ready .phx-user-card {
    animation: phx-rise 0.6s ease both;
}
.phx-portal-ready .phx-dash-metrics > article:nth-child(2),
.phx-portal-ready .phx-dash-card:nth-child(2) { animation-delay: 0.06s; }
.phx-portal-ready .phx-dash-metrics > article:nth-child(3),
.phx-portal-ready .phx-dash-card:nth-child(3) { animation-delay: 0.12s; }
.phx-portal-ready .phx-dash-metrics > article:nth-child(4) { animation-delay: 0.18s; }
.phx-portal-ready .phx-dash-metrics > article:nth-child(5) { animation-delay: 0.24s; }
@keyframes phx-rise {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.phx-portal nav.navbar.phx-portal-nav,
.phx-portal-nav.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.75) !important;
    background-color: rgba(0, 0, 0, 0.75) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
}
.phx-portal-nav .navbar-toggler-icon,
.phx-portal-nav .icon-bar {
    color: #fff;
}
.phx-portal-nav .navbar-nav .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.7);
}
.phx-portal-nav .navbar-nav .nav-link:hover,
.phx-portal-nav .navbar-nav .nav-link.active {
    color: #c5a47e;
}
.phx-portal-with-sidebar {
    display: flex;
    align-items: flex-start;
    gap: 0;
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 0 24px;
    flex: 1 1 auto;
    min-width: 0;
}
.phx-section-sidebar {
    position: sticky;
    top: 88px;
    flex: 0 0 220px;
    width: 220px;
    max-height: calc(100vh - 112px);
    overflow: auto;
    margin: 48px 0 56px;
    padding: 18px 14px;
    border: 1px solid rgba(197, 164, 126, 0.28);
    border-radius: 20px;
    background: rgba(255, 253, 249, 0.88);
    box-shadow: 0 18px 40px rgba(20, 18, 16, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.phx-section-sidebar-label {
    margin: 0 8px 14px;
    color: #c5a47e;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 11px;
}
.phx-section-sidebar-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 4px;
}
.phx-section-sidebar-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 12px;
    color: #3f3831;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 0.03em;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.phx-section-sidebar-link:hover,
.phx-section-sidebar-link:focus {
    background: rgba(197, 164, 126, 0.14);
    color: #8a7358;
}
.phx-section-sidebar-link.active {
    background: rgba(197, 164, 126, 0.22);
    color: #141210;
    font-weight: 600;
}
.phx-portal-with-sidebar-main {
    flex: 1 1 auto;
    min-width: 0;
}
.phx-portal-with-sidebar .phx-portal-main {
    width: 100%;
    margin: 0;
    padding-left: 28px;
    padding-right: 0;
}
body.has-section-sidebar.is-impersonating .phx-section-sidebar {
    top: 128px;
    max-height: calc(100vh - 152px);
}
.phx-portal-nav .phx-nav-logout-item {
    display: flex;
    align-items: center;
    margin-left: 12px;
}
.phx-portal-nav .phx-nav-logout {
    margin: 0;
}
.phx-portal-nav .button-1.phx-logout-btn,
.phx-logout-btn.button-1 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    min-height: 40px;
    padding: 8px 20px;
    border: 1px solid #c5a47e;
    border-radius: 40px;
    background: #c5a47e;
    background-color: #c5a47e;
    color: #141210;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: none;
    transform: none;
    cursor: pointer;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.phx-portal-nav .button-1.phx-logout-btn:hover,
.phx-logout-btn.button-1:hover {
    background: #b89268;
    background-color: #b89268;
    border-color: #b89268;
    color: #141210;
    transform: none;
}
.phx-nav-badge {
    display: inline-flex;
    min-width: 1.4em;
    padding: 0 6px;
    margin-left: 2px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #c5a47e;
    font-size: 11px;
    font-style: normal;
    justify-content: center;
    line-height: 1.4;
}
.phx-nav-badge.is-new {
    background: #c5a47e;
    color: #101010;
}
.phx-notify-dropdown {
    width: min(360px, calc(100vw - 32px));
    padding: 0;
    overflow: hidden;
    background: #fff;
}
.phx-notify-dropdown .phx-notify-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #eadfce;
    background: #fbf8f4;
}
.phx-notify-dropdown .phx-notify-head button {
    border: 0;
    background: transparent;
    color: #8a7358;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
}
.phx-notify-dropdown .phx-notify-empty {
    margin: 0;
    padding: 18px 16px;
    color: #6d645b;
}
.phx-notify-item {
    margin: 0;
    border-bottom: 1px solid #f0e8dc;
}
.phx-notify-item.is-new {
    background: #fffaf3;
}
.phx-notify-item .dropdown-item {
    display: grid;
    gap: 4px;
    white-space: normal;
    padding: 12px 16px;
}
.phx-notify-item .dropdown-item small {
    color: #6d645b;
    font-size: 13px;
}
.phx-portal-app {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
}
.phx-portal-stage {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.phx-portal-main {
    flex: 1 1 auto;
    min-width: 0;
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 48px 24px 56px;
    animation: phx-rise 0.55s ease both;
}
.phx-portal-stage .footer {
    margin-top: auto;
}
.phx-portal-main h1,
.phx-portal-main h2 {
    font-family: "Gilda Display", "Times New Roman", Times, serif;
    font-weight: 400;
    letter-spacing: 0.06em;
    margin: 0 0 8px;
}
.phx-portal-main h1 {
    font-size: 42px;
}
.phx-portal-main h2 {
    font-size: 28px;
}
.portal-kicker {
    margin: 0;
    color: #c5a47e;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 12px;
}
.portal-progress,
.portal-settings,
.portal-messages {
    max-width: 860px;
    margin-bottom: 28px;
    padding: 28px 28px 24px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid #eadfce;
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(20, 18, 16, 0.05);
}
.portal-ref {
    color: #6d645b;
    margin: 0 0 12px;
}
.portal-now {
    font-family: "Gilda Display", "Times New Roman", Times, serif;
    font-size: 32px;
    margin: 0 0 6px;
}
.portal-line {
    margin: 0 0 22px;
    max-width: 36em;
    color: #6d645b;
}

/* Progress bars */
.phx-progress {
    margin: 0 0 8px;
}
.phx-progress-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 10px;
}
.phx-progress-top strong {
    font-family: "Gilda Display", "Times New Roman", Times, serif;
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 0.04em;
}
.phx-progress-top span {
    color: #c5a47e;
    letter-spacing: 0.12em;
    font-size: 13px;
}
.phx-progress-track {
    height: 12px;
    border-radius: 999px;
    background: #ebe3d8;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(20, 18, 16, 0.08);
}
.phx-progress-fill {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #a87d4f, #c5a47e 55%, #e0c9a8);
    transition: width 0.95s cubic-bezier(0.22, 1, 0.36, 1);
}
.phx-progress-fill.is-ready {
    width: var(--phx-progress, 0%);
}
.phx-mini-progress {
    height: 6px;
    border-radius: 999px;
    background: #ebe3d8;
    overflow: hidden;
    margin: 0 0 8px;
    max-width: 220px;
}
.phx-mini-progress-fill {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #a87d4f, #c5a47e);
    transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.phx-mini-progress-fill.is-ready {
    width: var(--phx-progress, 0%);
}
.portal-stages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 10px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}
.portal-stages li {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 12px 14px;
    border: 1px solid #e4d9cc;
    border-radius: 16px;
    color: #8a8178;
    background: #fff;
    font-size: 13px;
    min-height: 84px;
    transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.portal-stages li i {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid #e4d9cc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-style: normal;
    font-size: 12px;
    letter-spacing: 0;
}
.portal-stages li.is-done {
    color: #6d645b;
    border-color: #c5a47e;
}
.portal-stages li.is-done i {
    background: #efe4d5;
    border-color: #c5a47e;
    color: #8a7358;
}
.portal-stages li.is-now {
    background: #141210;
    border-color: #141210;
    color: #f7f4f0;
    transform: translateY(-2px);
}
.portal-stages li.is-now i {
    background: #c5a47e;
    border-color: #c5a47e;
    color: #141210;
}

.portal-settings form,
.phx-message-form {
    text-align: left;
}
.portal-email {
    color: #6d645b;
    margin: 0 0 18px;
}
.portal-shop-link {
    display: inline-block;
    margin-top: 18px;
    color: #8a7358;
    letter-spacing: 0.08em;
}
.portal-shop-title {
    font-family: "Gilda Display", "Times New Roman", Times, serif;
    font-weight: 400;
    font-size: 42px;
    letter-spacing: 0.06em;
    margin: 0 0 8px;
}
.phx-portal-main .portal-shop:not(.portal-shop-solo) {
    margin-top: 56px;
    padding-top: 36px;
    border-top: 1px solid #e4d9cc;
}
.phx-portal.shop-page .shop-cart-shade,
.phx-portal.shop-page .shop-board-order {
    top: 90px;
    height: calc(100vh - 90px);
}
.phx-portal.shop-page .shop-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.phx-portal .account-error,
.phx-portal .account-notice {
    max-width: 760px;
}

.phx-impersonate-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 22px;
    background: #c5a47e;
    color: #141210;
}
.phx-impersonate-bar p {
    margin: 0;
}
.phx-impersonate-bar button {
    border: 1px solid #141210;
    background: #141210;
    color: #f7f4f0;
    border-radius: 40px;
    padding: 6px 14px;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
}

/* Dashboard / statistics */
.phx-dash-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
    margin: 0 0 28px;
}
.phx-dash-metrics article {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid #eadfce;
    border-radius: 20px;
    padding: 18px 16px;
}
.phx-dash-metrics span {
    display: block;
    color: #8a8178;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 11px;
    margin-bottom: 8px;
}
.phx-dash-metrics strong {
    font-family: "Gilda Display", "Times New Roman", Times, serif;
    font-size: 34px;
    font-weight: 400;
}
.phx-dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}
.phx-dash-card {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid #eadfce;
    border-radius: 24px;
    padding: 22px;
}
.phx-dash-wide {
    grid-column: 1 / -1;
}
.phx-dash-card-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.phx-dash-card-head a {
    color: #8a7358;
    letter-spacing: 0.06em;
}
.phx-bars {
    display: grid;
    gap: 12px;
}
.phx-bar-row {
    display: grid;
    grid-template-columns: minmax(90px, 120px) 1fr auto;
    gap: 10px;
    align-items: center;
}
.phx-bar-row span {
    font-size: 13px;
    color: #6d645b;
}
.phx-bar-row b {
    min-width: 1.5em;
    text-align: right;
}
.phx-bar-track {
    height: 10px;
    border-radius: 999px;
    background: #ebe3d8;
    overflow: hidden;
}
.phx-bar-track > i {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #a87d4f, #c5a47e);
    font-style: normal;
    transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.phx-bar-track > i.is-ready {
    width: var(--phx-bar, 0%);
}
.phx-atelier-note {
    margin-bottom: 12px;
}
.phx-user-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.phx-btn-danger {
    background: transparent !important;
    color: #8a4a3a !important;
    border-color: #d4a59a !important;
}

.phx-forgot-wrap {
    margin: 18px 0 0;
    text-align: center;
}
.phx-forgot-trigger {
    border: 0;
    background: transparent;
    color: #8a7358;
    letter-spacing: 0.08em;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
}
.phx-forgot-trigger:hover {
    color: #141210;
}
.phx-forgot-modal {
    border: 0;
    border-radius: 24px;
    overflow: hidden;
}
.phx-forgot-modal .modal-header {
    border-bottom: 1px solid #eadfce;
    background: #fbf8f4;
    align-items: flex-start;
}
.phx-forgot-modal .modal-title {
    font-family: "Gilda Display", "Times New Roman", Times, serif;
    font-weight: 400;
    font-size: 28px;
    margin: 4px 0 0;
}
.phx-forgot-modal .portal-line {
    margin-bottom: 16px;
}
.phx-forgot-form label {
    display: grid;
    gap: 6px;
    text-align: left;
    margin-bottom: 14px;
}
.phx-forgot-form input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e6ddd3;
    border-radius: 12px;
    background: #fff;
    font: inherit;
}
.phx-login-page .phx-login-card {
    animation: phxLoginRise 0.7s ease both;
}
.phx-login-page .phx-login-card > .fa-lock {
    transition: transform 0.35s ease, color 0.35s ease;
}
.phx-login-page .phx-login-form input:focus {
    border-color: #c5a47e;
    box-shadow: 0 0 0 4px rgba(197, 164, 126, 0.18);
    outline: none;
}
.phx-login-page .phx-login-form input:focus-visible + *,
.phx-login-page .phx-login-card:focus-within > .fa-lock {
    transform: translateY(-2px);
    color: #b89268;
}

.phx-message-layout {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}
.phx-message-list,
.phx-message-panel {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid #eadfce;
    border-radius: 24px;
    padding: 18px;
}
.phx-message-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.phx-message-list-item {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    border: 1px solid transparent;
    background: #fff;
}
.phx-message-list-item span {
    color: #8a8178;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.phx-message-list-item.is-on,
.phx-message-list-item:hover {
    border-color: #c5a47e;
}
.phx-message-thread {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0 0 18px;
    max-height: 52vh;
    overflow: auto;
}
.phx-message {
    max-width: 85%;
    padding: 12px 14px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #eadfce;
}
.phx-message.is-mine {
    align-self: flex-end;
    background: #141210;
    border-color: #141210;
    color: #f7f4f0;
}
.phx-message.is-studio,
.phx-message.is-company {
    align-self: flex-start;
}
.phx-client-hero {
    margin-bottom: 22px;
}
.phx-client-panel,
.phx-client-hero.phx-manager-hero {
    background:
        linear-gradient(145deg, rgba(255, 253, 249, 0.96), rgba(247, 241, 234, 0.9));
    border: 1px solid var(--phx-line, #eadfce);
    border-radius: 28px;
    box-shadow: var(--phx-shadow, 0 24px 60px rgba(20, 18, 16, 0.08));
}
.phx-client-panel {
    padding: 24px 26px;
    margin-bottom: 18px;
}
.portal-messages.phx-client-panel,
.portal-settings.phx-client-panel {
    max-width: none;
    background:
        linear-gradient(145deg, rgba(255, 253, 249, 0.96), rgba(247, 241, 234, 0.9));
}
.phx-client-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.phx-doc-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0 0 22px;
}
.phx-doc-grid-contracts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.phx-client-shortcuts {
    margin-bottom: 22px;
}
.phx-doc-tile {
    display: grid;
    gap: 8px;
    padding: 22px 22px 20px;
    border-radius: 24px;
    border: 1px solid var(--phx-line, #eadfce);
    background:
        linear-gradient(160deg, rgba(255, 253, 249, 0.98), rgba(245, 238, 229, 0.92));
    box-shadow: 0 18px 40px rgba(20, 18, 16, 0.05);
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.phx-doc-tile:hover {
    transform: translateY(-2px);
    border-color: rgba(197, 164, 126, 0.55);
    box-shadow: 0 22px 48px rgba(20, 18, 16, 0.08);
}
.phx-doc-tile.is-static:hover {
    transform: none;
}
.phx-doc-tile h2 {
    margin: 0;
    font-family: "Gilda Display", "Times New Roman", Times, serif;
    font-weight: 400;
    font-size: 28px;
    letter-spacing: 0.04em;
}
.phx-doc-tile .portal-line {
    margin: 0;
}
.phx-doc-tile-meta,
.phx-doc-status {
    display: inline-flex;
    align-items: center;
    margin-top: 8px;
    color: var(--phx-gold-deep, #8a7358);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 12px;
}
.phx-doc-status.is-paid,
.phx-doc-status.is-signed {
    color: #5f7358;
}
.phx-doc-status.is-issued,
.phx-doc-status.is-sent {
    color: var(--phx-gold-deep, #8a7358);
}
.phx-doc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}
.phx-doc-list li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid #eadfce;
}
.phx-doc-list li div {
    display: grid;
    gap: 4px;
}
.phx-doc-list li span {
    color: #8a8178;
    font-size: 13px;
}
.phx-doc-list li b {
    font-family: "Gilda Display", "Times New Roman", Times, serif;
    font-weight: 400;
    font-size: 22px;
    letter-spacing: 0.03em;
    white-space: nowrap;
}
.phx-client-invoice-list,
.phx-client-archive {
    display: grid;
    gap: 18px;
}
.phx-client-invoice .account-invoice {
    margin-top: 14px;
}
.phx-client-metrics a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.phx-client-progress-list {
    display: grid;
    gap: 16px;
}
.phx-client-progress-list .portal-progress {
    margin: 0;
    padding: 8px 0 18px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    max-width: none;
}
.phx-client-progress-list .portal-progress + .portal-progress {
    border-top: 1px solid var(--phx-line, #eadfce);
    padding-top: 18px;
}
.phx-client-progress-list .portal-progress h2 {
    display: none;
}
.phx-client-progress-list .phx-progress-top {
    margin-bottom: 8px;
}
.phx-client-progress-list .portal-line {
    margin: 10px 0 0;
}
.phx-client-progress-list .portal-ref {
    margin: 10px 0 0;
}
.phx-message-meta {
    margin: 0 0 6px;
    font-size: 12px;
    letter-spacing: 0.06em;
    opacity: 0.72;
}
.phx-message-body {
    margin: 0;
    white-space: pre-wrap;
}
.phx-message-form textarea {
    width: 100%;
    margin-top: 6px;
    padding: 12px 14px;
    border: 1px solid #e6ddd3;
    border-radius: 12px;
    background: #fff;
    color: #101010;
    font: inherit;
    resize: vertical;
}
.phx-message-form .button-1 {
    margin-top: 12px;
}

@keyframes phxLoginRise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.phx-create-project {
    margin-bottom: 28px;
    padding: 22px 24px;
    border-radius: 24px;
    border: 1px solid #eadfce;
    background: rgba(255, 255, 255, 0.72);
}
.phx-create-project h2,
.phx-create-project summary {
    margin: 0 0 14px;
    font-family: "Gilda Display", "Times New Roman", Times, serif;
    font-weight: 400;
    font-size: 28px;
    list-style: none;
    cursor: pointer;
    color: #141210;
}
.phx-create-project summary::-webkit-details-marker {
    display: none;
}
.phx-user-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin-top: 8px;
}
.phx-user-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 22px;
    border-radius: 24px;
    border: 1px solid #eadfce;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(251, 248, 244, 0.78));
    box-shadow: 0 16px 36px rgba(20, 18, 16, 0.06);
}
.phx-user-card.is-manager {
    background:
        linear-gradient(160deg, rgba(20, 18, 16, 0.96), rgba(42, 36, 30, 0.92));
    border-color: rgba(197, 164, 126, 0.35);
    color: #f7f4f0;
}
.phx-user-card.is-you {
    box-shadow: 0 0 0 1px rgba(197, 164, 126, 0.55), 0 16px 36px rgba(20, 18, 16, 0.12);
}
.phx-user-card-top {
    display: flex;
    gap: 14px;
    align-items: center;
}
.phx-user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: #141210;
    color: #c5a47e;
    font-family: "Gilda Display", "Times New Roman", Times, serif;
    font-size: 20px;
    letter-spacing: 0.04em;
    flex: 0 0 auto;
}
.phx-user-card.is-manager .phx-user-avatar {
    background: rgba(197, 164, 126, 0.18);
    color: #d8bf9c;
}
.phx-user-role {
    margin: 0 0 4px;
    color: #8a7358;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 11px;
}
.phx-user-card.is-manager .phx-user-role {
    color: #d8bf9c;
}
.phx-user-card h2 {
    margin: 0;
    font-family: "Gilda Display", "Times New Roman", Times, serif;
    font-weight: 400;
    font-size: 28px;
    line-height: 1.1;
}
.phx-user-account {
    margin: 4px 0 0;
    color: #8a8178;
    font-size: 13px;
}
.phx-user-card.is-manager .phx-user-account {
    color: rgba(247, 244, 240, 0.65);
}
.phx-user-meta {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}
.phx-user-meta li {
    display: grid;
    gap: 2px;
}
.phx-user-meta span {
    color: #8a8178;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.phx-user-card.is-manager .phx-user-meta span {
    color: rgba(247, 244, 240, 0.55);
}
.phx-user-meta strong {
    font-weight: 500;
    color: #141210;
    word-break: break-word;
}
.phx-user-card.is-manager .phx-user-meta strong {
    color: #f7f4f0;
}
.phx-user-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.phx-user-stats span {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    min-width: 72px;
    padding: 10px 12px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #eadfce;
    color: #6d645b;
    font-size: 12px;
}
.phx-user-stats b {
    color: #141210;
    font-family: "Gilda Display", "Times New Roman", Times, serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
}
.phx-user-card .phx-user-actions {
    margin-top: auto;
}
.phx-user-card .phx-ghost-btn {
    color: #8a7358;
    border-color: #d8c7b2;
}
.phx-package-hint {
    margin: 0 0 14px;
    color: #8a7358;
}

/* Manager luxury dashboard */
.phx-manager-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    margin: 0 0 28px;
    padding: 28px 28px 30px;
    border: 1px solid rgba(197, 164, 126, 0.35);
    border-radius: 28px;
    background:
        radial-gradient(circle at 12% 18%, rgba(197, 164, 126, 0.22), transparent 42%),
        linear-gradient(145deg, rgba(20, 18, 16, 0.96), rgba(42, 36, 30, 0.92));
    color: #f7f4f0;
    box-shadow: 0 24px 60px rgba(20, 18, 16, 0.18);
}
.phx-manager-hero .portal-kicker {
    color: #d8bf9c;
}
.phx-manager-hero h1 {
    margin: 6px 0 10px;
    color: #fffaf4;
    font-family: "Gilda Display", "Times New Roman", Times, serif;
    font-weight: 400;
    font-size: clamp(34px, 5vw, 52px);
}
.phx-manager-hero .portal-line {
    margin: 0;
    max-width: 42ch;
    color: rgba(247, 244, 240, 0.78);
}
.phx-manager-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.phx-manager-hero .button-1 {
    background: #c5a47e;
    border-color: #c5a47e;
    color: #141210;
}
.phx-ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid rgba(247, 244, 240, 0.35);
    border-radius: 999px;
    background: transparent;
    color: #f7f4f0;
    text-decoration: none;
    letter-spacing: 0.06em;
    font: inherit;
    cursor: pointer;
}
.phx-ghost-btn:hover {
    border-color: #c5a47e;
    color: #c5a47e;
}
.phx-dash-card .phx-ghost-btn {
    color: #8a7358;
    border-color: #d8c7b2;
}
.phx-dash-metrics-lux {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}
.phx-dash-metrics-lux article {
    position: relative;
    overflow: hidden;
    padding: 18px 18px 16px;
    border-radius: 22px;
    border: 1px solid #eadfce;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(251, 248, 244, 0.72));
}
.phx-dash-metrics-lux article::after {
    content: "";
    position: absolute;
    inset: auto -20% -40% auto;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(197, 164, 126, 0.16);
}
.phx-dash-metrics-lux span {
    display: block;
    margin-bottom: 8px;
    color: #8a8178;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 11px;
}
.phx-dash-metrics-lux strong {
    display: block;
    font-family: "Gilda Display", "Times New Roman", Times, serif;
    font-size: 36px;
    font-weight: 400;
    line-height: 1;
    color: #141210;
}
.phx-dash-metrics-lux em {
    display: block;
    margin-top: 8px;
    font-style: normal;
    color: #6d645b;
    font-size: 13px;
}
.phx-manager-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 24px;
    padding: 8px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid #eadfce;
}
.phx-manager-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    text-decoration: none;
    color: #6d645b;
    letter-spacing: 0.04em;
}
.phx-manager-tabs a:hover {
    color: #141210;
    background: rgba(197, 164, 126, 0.12);
}
.phx-manager-tabs a.is-on {
    background: #141210;
    color: #f7f4f0;
}
.phx-dash-grid-lux {
    margin-bottom: 22px;
}
.phx-dash-card h2 {
    margin: 0 0 16px;
    font-family: "Gilda Display", "Times New Roman", Times, serif;
    font-weight: 400;
    font-size: 28px;
}
.phx-donut-wrap {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: center;
}
.phx-donut-total {
    fill: #141210;
    font-size: 28px;
    font-family: "Gilda Display", "Times New Roman", Times, serif;
}
.phx-donut-label {
    fill: #8a8178;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.phx-donut-legend {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}
.phx-donut-legend li {
    display: grid;
    grid-template-columns: 12px 1fr auto;
    gap: 8px;
    align-items: center;
    font-size: 13px;
    color: #6d645b;
}
.phx-donut-legend i {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    font-style: normal;
}
.phx-donut-legend b {
    color: #141210;
}
.phx-attention-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}
.phx-attention-list li {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #eadfce;
}
.phx-attention-list a {
    color: #8a7358;
    letter-spacing: 0.04em;
}
.phx-dash-threads {
    background: transparent;
    border: 0;
    padding: 0;
}
.phx-shop-editor .account-fields,
.phx-shop-category-form .account-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}
.phx-shop-editor label,
.phx-shop-category-form label {
    display: grid;
    gap: 6px;
    font-size: 13px;
    color: #6d645b;
}
.phx-shop-editor label.is-wide,
.phx-shop-category-form label.is-wide,
.phx-shop-editor .phx-check {
    grid-column: 1 / -1;
}
.phx-shop-editor input,
.phx-shop-editor select,
.phx-shop-editor textarea,
.phx-shop-category-form input,
.phx-shop-category-form textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #e6ddd3;
    border-radius: 12px;
    background: #fff;
    font: inherit;
    color: #141210;
}
.phx-check {
    display: flex !important;
    align-items: center;
    gap: 10px;
    grid-template-columns: none !important;
}
.phx-check input {
    width: auto;
}
.phx-shop-category-form {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #eadfce;
}
.phx-shop-admin-list {
    display: grid;
    gap: 18px;
}
.phx-shop-admin-item {
    padding: 18px;
    border-radius: 22px;
    border: 1px solid #eadfce;
    background: #fff;
}
.phx-shop-admin-media {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 14px;
}
.phx-shop-admin-media img {
    width: 84px;
    height: 84px;
    object-fit: cover;
    border-radius: 16px;
    background: #ebe3d8;
}
.phx-shop-admin-media strong {
    display: block;
    font-family: "Gilda Display", "Times New Roman", Times, serif;
    font-size: 24px;
    font-weight: 400;
}
.phx-shop-admin-media span {
    color: #8a8178;
    font-size: 13px;
}
.portal-shop.is-manager-view .shop-cart-tab,
.portal-shop.is-manager-view .shop-cart-shade,
.portal-shop.is-manager-view .shop-board-order {
    display: none !important;
}

.phx-detail-hero,
.phx-manager-hero {
    position: relative;
    overflow: hidden;
}
.phx-detail-hero::after,
.phx-manager-hero::after {
    content: "";
    position: absolute;
    inset: auto -10% -40% auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(197, 164, 126, 0.28), transparent 70%);
    pointer-events: none;
}
.phx-detail-hero,
.phx-detail-grid {
    display: grid;
    gap: 18px;
    margin-bottom: 22px;
}
.phx-detail-hero {
    grid-template-columns: 1fr auto;
    align-items: end;
    padding: 28px 30px;
    border: 1px solid var(--phx-line);
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(255, 253, 249, 0.96), rgba(247, 241, 234, 0.92));
    box-shadow: var(--phx-shadow);
}
.phx-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.phx-detail-status,
.phx-notes-form {
    margin-top: 16px;
    display: grid;
    gap: 12px;
}
.phx-notes-form textarea,
.phx-detail-status select,
.phx-message-form select,
.phx-board-filter input,
.phx-pin-form input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e6ddd3;
    border-radius: 14px;
    background: var(--phx-paper);
    font: inherit;
    color: var(--phx-ink);
}
.phx-board-toolbar {
    margin: 0 0 14px;
}
.phx-board-filter input {
    max-width: 360px;
}
.phx-line-summary {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--phx-line);
    display: grid;
    gap: 8px;
}
.phx-line-summary p {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    color: var(--phx-muted);
    font-size: 14px;
}
.phx-line-summary strong,
.phx-line-total strong {
    color: var(--phx-ink);
}
.phx-line-total {
    padding-top: 6px;
    border-top: 1px dashed #e6ddd3;
    font-weight: 500;
}
.portal-progress.is-focused {
    outline: 2px solid rgba(197, 164, 126, 0.55);
    outline-offset: 4px;
    box-shadow: 0 0 0 8px rgba(197, 164, 126, 0.12);
}
.phx-shop-address-gate {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0 0 22px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(197, 164, 126, 0.45);
    background: linear-gradient(120deg, rgba(197, 164, 126, 0.16), rgba(255, 253, 249, 0.9));
}
.phx-shop-address-gate p {
    margin: 0;
    color: var(--phx-ink);
}
.phx-pin-panel {
    margin-top: 22px;
}
.phx-pin-panel h2 {
    font-family: "Gilda Display", "Times New Roman", Times, serif;
    font-weight: 400;
    margin: 0 0 8px;
}
.phx-optional {
    color: var(--phx-muted);
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: none;
}
.phx-login-card {
    border-radius: 28px;
    border: 1px solid rgba(197, 164, 126, 0.28);
    background:
        linear-gradient(160deg, rgba(255, 253, 249, 0.98), rgba(247, 241, 234, 0.94));
    box-shadow: var(--phx-shadow);
}
.phx-dash-card,
.portal-progress,
.portal-settings,
.portal-messages,
.phx-user-card,
.phx-shop-admin-item {
    backdrop-filter: blur(6px);
}
.account-table.account-list tbody tr {
    transition: background-color 0.2s ease;
}
.account-table.account-list tbody tr:hover {
    background: rgba(197, 164, 126, 0.08);
}
.phx-ghost-btn {
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.button-1 {
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.button-1:hover {
    transform: translateY(-1px);
}

@media (max-width: 1100px) {
    .phx-dash-metrics-lux,
    .phx-client-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 900px) {
    .phx-message-layout {
        grid-template-columns: 1fr;
    }
    .phx-donut-wrap,
    .phx-shop-editor .account-fields,
    .phx-shop-category-form .account-fields {
        grid-template-columns: 1fr;
    }
    .phx-manager-hero {
        padding: 22px;
    }
}
@media (max-width: 640px) {
    .phx-dash-metrics-lux,
    .phx-client-metrics {
        grid-template-columns: 1fr;
    }
    .phx-attention-list li {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}
@media (max-width: 991px) {
    .phx-portal-nav .navbar-collapse {
        padding-top: 12px;
        padding-bottom: 12px;
    }
    .phx-portal-nav .phx-nav-logout-item {
        margin: 10px 0 4px;
    }
    .phx-portal-nav .button-1.phx-logout-btn {
        width: auto;
    }
}
@media (max-width: 900px) {
    .phx-detail-grid,
    .phx-detail-hero,
    .phx-doc-grid,
    .phx-doc-grid-contracts {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 980px) {
    .phx-portal-with-sidebar {
        flex-direction: column;
        padding: 0 18px;
    }
    .phx-section-sidebar {
        position: static;
        width: 100%;
        max-height: none;
        flex-basis: auto;
        margin: 28px 0 0;
    }
    .phx-section-sidebar-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }
    .phx-section-sidebar-link {
        padding: 9px 12px;
    }
    .phx-portal-with-sidebar .phx-portal-main {
        padding: 24px 0 36px;
    }
}
@media (max-width: 800px) {
    .portal-progress,
    .portal-settings,
    .portal-messages {
        padding: 22px 18px;
    }
    .phx-portal-main {
        padding: 28px 18px 36px;
    }
    .phx-bar-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}
@media print {
    .phx-portal-nav,
    .phx-portal-stage .footer,
    .phx-impersonate-bar,
    .phx-section-sidebar,
    .no-print {
        display: none !important;
    }
    .phx-portal-main {
        padding: 0;
    }
    .phx-portal-with-sidebar {
        display: block;
        width: 100%;
        padding: 0;
    }
}
