:root {
    --pmsp-ink: #07101f;
    --pmsp-night: #091427;
    --pmsp-blue: #5e95ea;
    --pmsp-cyan: #a4d3ff;
    --pmsp-text: #f5f8ff;
    --pmsp-muted: rgba(232, 239, 255, 0.7);
    --pmsp-border: rgba(164, 211, 255, 0.14);
    --pmsp-panel: rgba(5, 12, 23, 0.62);
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
    background:
        radial-gradient(circle at top left, rgba(94, 149, 234, 0.18), transparent 32%),
        radial-gradient(circle at 85% 8%, rgba(94, 149, 234, 0.12), transparent 26%),
        linear-gradient(180deg, #07101f 0%, #091427 40%, #060d19 100%);
    background-color: #060d19;
    background-repeat: no-repeat;
    background-size: auto, auto, 100% 4200px;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(ellipse at 54% 42rem, rgba(56, 91, 145, 0.28), rgba(31, 58, 102, 0.12) 22rem, transparent 38rem),
        linear-gradient(180deg, rgba(52, 83, 132, 0.32) 0, rgba(39, 70, 116, 0.54) 48rem, rgba(26, 50, 88, 0.32) 72rem, transparent 96rem),
        radial-gradient(circle at -10rem 14rem, rgba(164, 211, 255, 0.08), rgba(164, 211, 255, 0.02) 18rem, transparent 31rem),
        radial-gradient(circle at calc(100% - 22rem) 18rem, rgba(164, 211, 255, 0.1), rgba(164, 211, 255, 0.025) 16rem, transparent 28rem),
        radial-gradient(circle at top left, rgba(94, 149, 234, 0.18), transparent 32%),
        radial-gradient(circle at 85% 8%, rgba(94, 149, 234, 0.12), transparent 26%),
        linear-gradient(180deg, #07101f 0%, #091427 40%, #060d19 100%);
    background-color: #060d19;
    background-repeat: no-repeat;
    background-size: auto, auto, auto, auto, auto, auto, 100% 4200px;
    color: var(--pmsp-text);
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: auto;
    z-index: 0;
    width: 28rem;
    height: 28rem;
    border-radius: 999px;
    filter: blur(100px);
    pointer-events: none;
}

body::before {
    top: 4rem;
    right: -8rem;
    background: rgba(94, 149, 234, 0.14);
}

body::after {
    bottom: 8rem;
    left: -10rem;
    background: rgba(54, 123, 220, 0.14);
}

.am-common,
.am-common legend,
.am-body-content input,
.am-body-content textarea,
.am-body-content select,
.am-body-content button,
.am-popup input,
.am-popup textarea,
.am-popup select,
.am-popup button,
.am-form input,
.am-form textarea,
.am-form select,
.am-form button {
    color: var(--pmsp-text);
    font-family: inherit;
}

.am-common a,
.am-form a,
.am-signup a,
.am-signup-login-wrapper a {
    color: var(--pmsp-cyan);
    text-decoration-color: rgba(164, 211, 255, 0.45);
}

.am-main {
    max-width: 1280px;
}

.am-layout {
    position: relative;
    z-index: 1;
    flex: 1 0 auto;
    width: 100%;
    min-height: initial;
    margin: 0;
    background: none;
}

.am-header {
    position: sticky;
    z-index: 50;
    top: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(7, 16, 31, 0.74);
    backdrop-filter: blur(22px);
}

.am-header .am-header-content-wrapper,
.am-body .am-body-content-wrapper,
.am-footer .am-footer-content-wrapper {
    border: 0;
    box-shadow: none;
    background: none;
}

.am-header-line {
    border: 0;
    background: none;
}

.am-header .am-header-content-wrapper {
    box-sizing: border-box;
    padding: 16px;
}

.am-header .am-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: 48px;
    padding: 0;
}

.am-header-logo-wrapper {
    flex: 0 0 auto;
    height: 48px;
}

.am-header-logo-wrapper a {
    display: flex;
    align-items: center;
    height: 48px;
}

.am-header .am-header-content .am-header-content-logo {
    display: block;
    float: none;
    width: auto;
    height: 48px;
    margin: 0;
    object-fit: contain;
}

.am-header-content-content {
    flex: 1 1 auto;
}

.am-header-menu-wrapper a,
ul.am-header-menu a,
ul.am-header-menu-narrow a {
    color: var(--pmsp-text);
}

ul.am-header-menu li ul,
ul.am-header-menu-narrow li ul {
    border-color: var(--pmsp-border);
    background: var(--pmsp-ink);
}

.am-body {
    background: none;
}

.am-body-content {
    min-height: 300px;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.am-logged-in .am-body-content {
    display: grid;
    grid-template-columns: clamp(170px, 24vw, 260px) minmax(0, 1fr);
    gap: 1.25rem clamp(1rem, 2.2vw, 1.75rem);
    align-items: start;
}

.am-logged-in .am-body-content-top {
    display: contents;
}

.am-logged-in .am-member-sidebar {
    grid-column: 1;
    grid-row: 1 / span 2;
}

.am-logged-in .am-account-toolbar {
    margin: 0;
}

.am-logged-in .am-account-toolbar .am-account-toolbar-items {
    display: block;
    overflow: hidden;
    box-sizing: border-box;
    min-height: auto;
    padding: 0.5rem;
    border: 1px solid rgba(164, 211, 255, 0.16);
    border-top: 0;
    border-radius: 0 0 0.9rem 0.9rem;
    background: rgba(5, 12, 23, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.am-logged-in .am-tabs-narrow-dashboard,
.am-logged-in .am-tabs-narrow-switch,
.am-logged-in .am-tabs-narrow-wrapper {
    display: none;
}

.am-logged-in .am-user-identity-block {
    float: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    align-items: center;
    min-width: 0;
    padding: 0;
    background: none;
    color: #fff;
    font-weight: 800;
    line-height: 1.3;
}

.am-logged-in .am-user-identity-block::before {
    content: "Account";
    grid-column: 1 / -1;
    padding: 0.5rem 0.35rem 0;
    color: rgba(245, 248, 255, 0.52);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.am-logged-in .am-user-identity-block_login {
    overflow: hidden;
    min-width: 0;
    padding: 0.2rem 0.35rem 0.45rem;
    overflow-wrap: anywhere;
}

.am-logged-in .am-user-identity-block a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    justify-self: stretch;
    min-height: 2.75rem;
    box-sizing: border-box;
    padding: 0.72rem 0.85rem;
    border: 0;
    border-radius: 0.65rem;
    background: transparent;
    color: rgba(245, 248, 255, 0.78);
    font-size: inherit;
    font-weight: 800;
    line-height: 1.2;
    text-align: left;
    text-decoration: none;
}

.am-logged-in .am-user-identity-block a:hover {
    background: rgba(94, 149, 234, 0.18);
    color: #fff;
}

.am-page-profile .am-user-identity-block a[href="/profile"],
.am-page-integrations .am-user-identity-block a[href="/integrations"] {
    background: rgba(94, 149, 234, 0.18);
    box-shadow: inset 3px 0 0 #7ee0c3;
    color: #fff;
}

.am-logged-in .am-tabs-wrapper {
    margin-top: 0;
}

.am-logged-in ul.am-tabs {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: 0;
    padding: 0.5rem;
    border: 1px solid rgba(164, 211, 255, 0.16);
    border-radius: 0.9rem 0.9rem 0 0;
    background: rgba(5, 12, 23, 0.52);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.am-logged-in ul.am-tabs > li {
    float: none;
    width: 100%;
    background: transparent;
}

.am-logged-in ul.am-tabs li {
    white-space: normal;
}

.am-logged-in ul.am-tabs a {
    display: flex;
    align-items: center;
    min-height: 2.75rem;
    height: auto;
    box-sizing: border-box;
    margin: 0;
    padding: 0.72rem 0.85rem;
    border: 0;
    border-radius: 0.65rem;
    color: rgba(245, 248, 255, 0.78);
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
}

.am-logged-in ul.am-tabs #menu-member {
    width: auto;
}

.am-logged-in ul.am-tabs #menu-member::before {
    width: 1.15rem;
    margin-right: 0.65rem;
    color: currentColor;
}

.am-logged-in ul.am-tabs li.active,
.am-logged-in ul.am-tabs li.normal:hover {
    background: transparent;
}

.am-logged-in ul.am-tabs li.active > a,
.am-logged-in ul.am-tabs li.normal > a:hover {
    border-color: transparent;
    background: rgba(94, 149, 234, 0.18);
    color: #fff;
}

.am-logged-in ul.am-tabs li.active > a {
    box-shadow: inset 3px 0 0 #7ee0c3;
}

.am-logged-in .am-body-content-top > .am-breadcrumbs,
.am-logged-in .am-body-content-top > h1,
.am-logged-in .am-body-content-top > .am-flash,
.am-logged-in .am-body-content-top > .am-info,
.am-logged-in .am-body-content-content {
    grid-column: 2;
    min-width: 0;
}

.am-logged-in .am-body-content-top > h1 {
    grid-row: 1;
    margin-top: 0;
}

.am-logged-in .am-body-content-content {
    grid-row: 2;
    align-self: stretch;
}

.am-logged-in .am-widget h2 {
    margin-top: 0;
    color: #fff;
}

.am-logged-in .am-widget .am-block,
.am-logged-in .am-block {
    border-color: rgba(164, 211, 255, 0.16);
    background: rgba(5, 12, 23, 0.58);
    color: rgba(245, 248, 255, 0.88);
}

.am-logged-in .am-layout-two-coll,
.am-logged-in .am-layout-two-coll .am-layout-two-coll-top,
.am-logged-in .am-layout-two-coll .am-layout-two-coll-bottom {
    border-color: rgba(164, 211, 255, 0.16);
    background: rgba(5, 12, 23, 0.42);
    box-shadow: none;
}

.am-logged-in .am-layout-two-coll {
    overflow: hidden;
    border-radius: 0.9rem;
}

.am-logged-in .am-layout-two-coll .am-layout-two-coll-top,
.am-logged-in .am-layout-two-coll .am-layout-two-coll-bottom {
    background: transparent;
}

.pmsp-integrations-page {
    width: min(100%, 48rem);
}

.pmsp-integrations-panel {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    background: var(--pmsp-panel);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.pmsp-integrations-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.15rem 0.3rem;
}

.pmsp-integrations-heading h2,
.pmsp-integrations-kicker,
.pmsp-integrations-copy {
    margin: 0;
}

.pmsp-integrations-heading h2 {
    color: #fff;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.15;
}

.pmsp-integrations-kicker {
    color: rgba(245, 248, 255, 0.54);
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.4;
    text-transform: uppercase;
}

.pmsp-integrations-copy {
    padding: 0 1.15rem 1rem;
    color: var(--pmsp-muted);
    font-size: 0.94rem;
    line-height: 1.55;
}

.pmsp-integrations-status {
    flex: 0 0 auto;
    border: 1px solid rgba(164, 211, 255, 0.18);
    border-radius: 999px;
    padding: 0.38rem 0.7rem;
    color: rgba(245, 248, 255, 0.84);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
}

.pmsp-integrations-status.is-connected {
    border-color: rgba(126, 224, 195, 0.32);
    background: rgba(126, 224, 195, 0.12);
    color: #ccfff0;
}

.pmsp-integrations-status.is-empty {
    background: rgba(255, 255, 255, 0.045);
}

.pmsp-integrations-panel .errors {
    margin: 0 1.15rem 1rem;
}

.pmsp-integrations-success {
    margin: 0 1.15rem 1rem;
}

.pmsp-integrations-form {
    margin-bottom: 0;
}

.pmsp-integrations-form form {
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.02);
}

.pmsp-secret-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.55rem;
    align-items: center;
}

.pmsp-secret-field input[type=password],
.pmsp-secret-field input[type=text] {
    min-width: 0;
}

.am-form .pmsp-secret-toggle,
.am-body-content .pmsp-secret-toggle {
    width: auto;
    min-width: 4.8rem;
    min-height: 2.85rem;
    padding: 0 1rem;
    border: 1px solid rgba(164, 211, 255, 0.22);
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: none;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
}

.am-form .pmsp-secret-toggle:hover,
.am-body-content .pmsp-secret-toggle:hover {
    background: rgba(94, 149, 234, 0.18);
    transform: none;
}

.pmsp-integrations-actions {
    background: transparent !important;
}

@media all and (min-width: 640px) {
    .pmsp-integrations-actions .am-element {
        display: flex;
        justify-content: flex-start;
    }

    .pmsp-integrations-actions input[type=submit] {
        width: auto;
        min-width: 15rem;
        padding-right: 1.5rem;
        padding-left: 1.5rem;
    }
}

@media all and (max-width: 500px) {
    .pmsp-integrations-heading {
        display: grid;
    }

    .pmsp-integrations-status {
        justify-self: start;
    }

    .pmsp-secret-field {
        grid-template-columns: minmax(0, 1fr);
    }
}

.pmsp-auth-heading {
    font-size: 1.5rem;
}

.am-page-login .am-auth-form {
    margin-right: auto;
    margin-left: auto;
}

.am-page-login .am-auth-form fieldset {
    gap: 0;
}

.am-page-login .am-signup-link {
    text-align: center;
}

.am-footer {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    height: auto;
    border-top: 1px solid #e5e7eb;
    background:
        radial-gradient(circle at -8rem 50%, rgba(54, 123, 220, 0.14), transparent 28rem),
        radial-gradient(circle at calc(100% + 8rem) 0, rgba(94, 149, 234, 0.12), transparent 28rem),
        #070a14;
    color: rgba(255, 255, 255, 0.55);
}

.am-footer .am-footer-content-wrapper {
    height: auto;
    background: transparent;
    color: rgba(255, 255, 255, 0.55);
}

.am-footer .am-footer-content {
    padding-top: 0;
}

.am-footer .am-footer-content-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem 0;
    font-size: 0.875rem;
    line-height: 1.5;
}

.am-footer .am-footer-content-content p {
    margin: 0;
    padding: 0;
}

.am-footer-actions {
    display: none;
}

@media (min-width: 640px) {
    .am-footer .am-footer-content-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.am-credits {
    color: rgba(255, 255, 255, 0.42);
}

.am-form {
    margin: 0 0 1rem;
}

.am-form form,
.am-popup,
.am-block,
.am-form-container .am-form-sidebar-sidebar {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    background: var(--pmsp-panel);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.am-form form {
    overflow: hidden;
}

.am-form fieldset {
    display: grid;
    gap: 0.7rem;
}

.am-form fieldset legend {
    border: 0;
    background: transparent;
    color: #fff;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 1.12rem;
    font-weight: 700;
    padding: 0.8rem 0.85rem 0.15rem;
}

.am-form div.am-row,
.am-form div.am-row.am-row-head,
.am-form .am-row.am-row-highlight {
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.045);
}

.am-form div.am-element-title,
.am-form div.am-element {
    float: none;
    width: auto;
    margin-left: 0;
    padding: 0.55rem 0.85rem;
    text-align: left;
}

.am-form div.am-element-title {
    padding-bottom: 0.2rem;
}

.am-form div.am-element {
    padding-top: 0.2rem;
}

.am-form div.am-element-title label {
    color: rgba(245, 248, 255, 0.95);
    font-size: 0.88rem;
    font-weight: 700;
}

.am-form div.am-element-title .comment {
    color: var(--pmsp-muted);
    font-size: 0.82rem;
    line-height: 1.45;
    opacity: 1;
}

.am-body-content select,
.am-body-content textarea,
.am-body-content input[type=email],
.am-body-content input[type=number],
.am-body-content input[type=text],
.am-body-content input[type=password],
.am-form select,
.am-form textarea,
.am-form input[type=email],
.am-form input[type=number],
.am-form input[type=text],
.am-form input[type=password],
.select2-container .select2-selection--single {
    min-height: 2.85rem;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    box-shadow: none;
}

.am-form select,
.am-form textarea,
.am-form input[type=email],
.am-form input[type=number],
.am-form input[type=text],
.am-form input[type=password] {
    width: 100%;
}

.am-form div.am-element input + input,
.am-form div.am-element select + select,
.am-form div.am-element input + select,
.am-form div.am-element select + input {
    margin-top: 0.55rem;
}

.am-form .am-pass-indicator-wrap,
.am-form input.am-pass-indicator {
    display: block;
    width: 100%;
}

.am-pass-indicator-bar {
    top: 0;
    background: rgba(255, 255, 255, 0.12);
}

.am-pass-indicator-bar_bar {
    height: 3px;
    border-radius: 999px;
}

.am-pass-indicator-bar_bar-weak {
    background: #ff8d8d;
}

.am-pass-indicator-bar_bar-good {
    background: #ffd978;
}

.am-pass-indicator-bar_bar-strong {
    background: #7ee0a0;
}

.am-body-content textarea:focus,
.am-body-content input[type=email]:focus,
.am-body-content input[type=number]:focus,
.am-body-content input[type=text]:focus,
.am-body-content input[type=password]:focus,
.am-body-content select:focus,
.am-form textarea:focus,
.am-form input[type=email]:focus,
.am-form input[type=number]:focus,
.am-form input[type=text]:focus,
.am-form input[type=password]:focus,
.am-form select:focus,
.select2-container--focus .select2-selection--single,
.select2-container--open .select2-selection--single {
    border-color: rgba(164, 211, 255, 0.55);
    box-shadow: 0 0 0 3px rgba(94, 149, 234, 0.14);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #fff;
    line-height: 1.4;
    padding: 0.68rem 0.75rem;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: rgba(255, 255, 255, 0.38);
}

.am-body-content textarea.am-error,
.am-body-content input.am-error,
.am-body-content select.am-error,
.am-form input.am-error,
.am-form textarea.am-error,
.am-form select.am-error {
    border-color: #ff8d8d;
    background: rgba(255, 82, 82, 0.12);
}

.am-form span.error,
.am-form span.required,
.am-form span.am-error {
    color: #ffb4b4;
}

.am-error,
ul.errors,
.am-flash {
    color: #fff;
}

.am-info {
    border: 1px solid rgba(164, 211, 255, 0.18);
    border-radius: 0.8rem;
    background: rgba(94, 149, 234, 0.12);
    color: rgba(245, 248, 255, 0.86);
}

.am-body-content a.button,
.am-body-content button,
.am-body-content input[type=button],
.am-body-content input[type=submit],
.am-form input[type=button],
.am-form input[type=submit],
.am-form button,
.am-popup a.button,
.am-popup button,
.am-popup input[type=button],
.am-popup input[type=submit] {
    min-height: 3rem;
    box-sizing: border-box;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #70a7f7 0%, #4b82d8 100%);
    box-shadow: 0 18px 35px rgba(36, 88, 171, 0.35);
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
}

.am-form input[type=button],
.am-form input[type=submit],
.am-form button {
    width: 100%;
}

.am-body-content a.button:hover,
.am-body-content button:hover,
.am-body-content input[type=button]:hover,
.am-body-content input[type=submit]:hover,
.am-form input[type=button]:hover,
.am-form input[type=submit]:hover,
.am-form button:hover {
    opacity: 0.94;
    transform: translateY(-1px);
}

@media all and (min-width: 640px) {
    .am-header .am-header-content-wrapper {
        padding-right: 24px;
        padding-left: 24px;
    }
}

@media all and (min-width: 1024px) {
    .am-header .am-header-content-wrapper {
        padding-right: 32px;
        padding-left: 32px;
    }
}

@media all and (max-width: 500px) {
    .am-logged-in .am-body-content {
        display: block;
    }

    .am-logged-in .am-body-content-top {
        display: block;
    }

    .am-logged-in .am-tabs-wrapper {
        display: block !important;
    }

    .am-logged-in .am-account-toolbar .am-account-toolbar-items {
        border-radius: 0 0 0.9rem 0.9rem;
    }

    .am-logged-in .am-tabs-wrapper {
        margin-top: 0;
        margin-bottom: 0;
    }

    .am-logged-in ul.am-tabs {
        border-top: 0;
    }
}
