:root {
    color-scheme: light;
    --eboda-deep-ocean: #003366;
    --eboda-navy: #003366;
    --eboda-horizon: #006699;
    --eboda-ocean-teal: #0099CC;
    --eboda-light-sky: #66CCFF;

    --ink: var(--eboda-navy);
    --muted: #4C6477;
    --line: #D7E7F2;
    --field: #ffffff;
    --brand: var(--eboda-deep-ocean);
    --brand-dark: var(--eboda-navy);
    --brand-accent: var(--eboda-ocean-teal);
    --brand-accent-dark: var(--eboda-horizon);
    --brand-highlight: var(--eboda-light-sky);
    --page: #F5F9FC;
    --panel: #ffffff;
    --success: var(--eboda-horizon);
    --error: #9f2f24;
}

html {
    accent-color: var(--brand-accent);
}

body {
    color: var(--ink);
}

.app-nav {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 64px;
    padding: 12px clamp(18px, 4vw, 44px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    background: var(--eboda-navy);
    backdrop-filter: blur(12px);
}

.app-brand-lockup {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.app-brand-mark {
    display: block;
    flex: 0 0 auto;
    height: 38px;
    overflow: hidden;
    text-decoration: none;
}

.app-brand-mark img {
    display: block;
    height: 100%;
    object-fit: contain;
}

.app-brand {
    flex: 0 0 auto;
    color: #fff;
    font-weight: 850;
    text-decoration: none;
}

.app-brand:hover,
.app-brand:focus-visible {
    color: var(--eboda-light-sky);
}

.brand-mark {
    display: inline-block;
    margin-left: 1px;
    font-size: 0.42em;
    line-height: 0;
    vertical-align: super;
}

.app-brand .brand-mark {
    font-size: 0.5em;
}

.app-brand-tagline {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-nav-links {
    display: flex;
    flex-wrap: wrap;
    column-gap: 18px;
    row-gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

.app-nav-links a {
    padding: 0;
    border-radius: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.app-nav-links a:hover,
.app-nav-links a:focus-visible {
    background: transparent;
    color: #fff;
}

.app-nav-links a.is-active {
    background: transparent;
    color: #fff;
    font-weight: 900;
}

.user-menu-wrap {
    position: relative;
}

.user-menu-trigger {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(0, 51, 102, 0.24);
    border-radius: 999px;
    padding: 0;
    background: #EAF6FF;
    color: var(--brand-dark);
    font: inherit;
    font-size: 15px;
    font-weight: 850;
    line-height: 1;
    cursor: pointer;
}

.login-menu-trigger {
    width: auto;
    min-height: 38px;
    border: 1px solid rgba(0, 51, 102, 0.24);
    border-radius: 999px;
    padding: 8px 12px;
    background: #EAF6FF;
    color: var(--brand-dark);
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.user-menu-trigger:hover,
.user-menu-trigger[aria-expanded="true"],
.login-menu-trigger:hover,
.login-menu-trigger[aria-expanded="true"] {
    background: var(--brand);
    color: #fff;
}

.app-nav-links .nav-text-trigger {
    min-height: auto;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    box-shadow: none;
}

.app-nav-links .nav-text-trigger:hover,
.app-nav-links .nav-text-trigger:focus-visible,
.app-nav-links .nav-text-trigger[aria-expanded="true"] {
    background: transparent;
    color: #fff;
}

.user-menu-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(82vw, 290px);
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(10, 37, 64, 0.16);
}

.user-menu-panel[hidden] {
    display: none;
}

.account-menu-panel {
    width: min(88vw, 340px);
    overflow: hidden;
    padding: 0;
    border-color: rgba(102, 204, 255, 0.34);
    box-shadow: 0 20px 52px rgba(10, 37, 64, 0.22);
}

.recommend-menu-panel {
    width: min(88vw, 340px);
    overflow: hidden;
    padding: 0;
    border-color: rgba(102, 204, 255, 0.34);
    box-shadow: 0 20px 52px rgba(10, 37, 64, 0.22);
}

.recommend-menu-header {
    padding: 14px;
    background: linear-gradient(180deg, rgba(0, 51, 102, 0.98), rgba(0, 51, 102, 0.92));
    color: #fff;
}

.recommend-menu-title {
    margin: 0;
    color: #fff;
    font-size: 17px;
    font-weight: 850;
    line-height: 1.25;
}

.recommend-menu-panel .login-menu-copy {
    margin: 0;
    padding: 14px 14px 0;
}

.recommend-menu-panel .login-form {
    padding: 12px 14px 14px;
}

.recommend-menu-panel .user-menu-kicker {
    color: rgba(255, 255, 255, 0.70);
}

.user-menu-profile {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 14px;
    background: linear-gradient(180deg, rgba(0, 51, 102, 0.98), rgba(0, 51, 102, 0.92));
    color: #fff;
}

.user-menu-avatar {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid rgba(102, 204, 255, 0.45);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
}

.user-menu-identity {
    min-width: 0;
}

.user-menu-kicker {
    margin: 0 0 4px;
    color: rgba(255, 255, 255, 0.70);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.user-menu-name {
    margin: 0;
    overflow: hidden;
    color: #fff;
    font-size: 15px;
    font-weight: 850;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu-email {
    margin: 3px 0 0;
    overflow-wrap: anywhere;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    line-height: 1.35;
}

.login-menu-copy {
    margin: 4px 0 12px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.login-form {
    display: grid;
    gap: 10px;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.login-form input,
.login-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 11px 12px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 14px;
    line-height: 1.4;
    text-align: left;
}

.login-form textarea {
    min-height: 82px;
    resize: vertical;
}

.login-form button {
    width: 100%;
    border-radius: 8px;
    padding: 11px 12px;
    font-size: 14px;
}

.user-menu-summary {
    margin: 0;
    padding: 14px;
    border: 0;
    background: #F5FAFE;
}

.user-menu-summary + .user-menu-summary {
    padding-top: 12px;
    border-top: 1px solid rgba(215, 231, 242, 0.92);
}

.user-menu-section-heading {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 8px;
}

.user-menu-section-label {
    display: block;
    margin: 0;
    color: var(--brand);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.06em;
    line-height: 1.2;
    text-transform: uppercase;
}

.user-menu-summary .summary-list {
    display: grid;
    gap: 0;
    margin: 0;
}

.user-menu-summary .summary-row {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 10px;
    align-items: baseline;
    padding: 4px 0;
    border-bottom: 1px solid rgba(215, 231, 242, 0.72);
}

.user-menu-summary .summary-row:last-child {
    border-bottom: 0;
}

.user-menu-summary .summary-term {
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.user-menu-summary .summary-detail {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: var(--ink);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu-summary .plan-usage {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    margin: 10px 0 0;
    padding: 8px 10px;
    border: 1px solid rgba(0, 153, 204, 0.22);
    border-radius: 6px;
    background: #EAF6FF;
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 850;
    line-height: 1.35;
}

.user-menu-summary .account-manage-link {
    flex: 0 0 auto;
    padding: 0;
    color: var(--brand-accent-dark);
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

.user-menu-summary .account-manage-link:hover,
.user-menu-summary .account-manage-link:focus-visible {
    color: var(--brand);
    text-decoration: underline;
}

.user-menu-actions {
    display: grid;
    gap: 0;
    padding: 8px 10px 10px;
    background: #fff;
}

.user-menu-panel a {
    display: block;
    padding: 9px 4px;
    border-radius: 0;
    color: var(--brand-dark);
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
}

.user-menu-panel a:hover {
    background: transparent;
    color: var(--brand-accent-dark);
}

@media (max-width: 620px) {
    .app-nav {
        align-items: flex-start;
        flex-direction: column;
    }

    .app-brand-lockup {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }

    .app-nav-links {
        justify-content: flex-start;
    }

    .user-menu-panel {
        left: 0;
        right: auto;
    }
}

a {
    color: var(--brand);
}

a:hover,
a:focus-visible {
    color: var(--brand-accent-dark);
}

button,
.button,
input[type="submit"] {
    border-color: transparent;
}

button:not([disabled]),
.button:not([disabled]),
input[type="submit"]:not([disabled]) {
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

button:hover,
button:focus-visible,
.button:hover,
.button:focus-visible,
input[type="submit"]:hover,
input[type="submit"]:focus-visible {
    box-shadow: 0 0 0 3px rgba(102, 204, 255, 0.28);
}

input,
textarea,
select {
    border-color: var(--line);
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 3px rgba(102, 204, 255, 0.22);
    outline: none;
}

.admin-notice,
.notice {
    color: var(--brand);
}

.advisor-widget-toggle,
.advisor-widget-form button {
    background: var(--brand);
}

.advisor-widget-toggle:hover,
.advisor-widget-toggle:focus-visible,
.advisor-widget-toggle[aria-expanded="true"],
.advisor-widget-form button:hover,
.advisor-widget-form button:focus-visible {
    background: var(--brand-dark);
}

.advisor-widget-badge {
    color: var(--brand);
}

.advisor-badge {
    display: inline-grid;
    min-width: 20px;
    height: 20px;
    place-items: center;
    margin-left: 6px;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-size: 11px;
    line-height: 1;
}

.advisor-widget-message.is-user {
    border-color: rgba(0, 51, 102, 0.22);
    background: #EAF6FF;
}

.standalone-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at 20% 12%, rgba(102, 204, 255, 0.18), transparent 22rem),
        radial-gradient(circle at 82% 80%, rgba(0, 102, 153, 0.14), transparent 24rem),
        var(--page);
}

.standalone-card {
    width: min(92vw, 620px);
    padding: 30px;
    border: 1px solid rgba(102, 204, 255, 0.22);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(0, 153, 204, 0.18), rgba(0, 51, 102, 0) 42%),
        var(--brand-dark);
    color: #fff;
    box-shadow: 0 24px 70px rgba(10, 37, 64, 0.24);
}

.standalone-card--narrow {
    width: min(92vw, 560px);
}

.standalone-card h1 {
    margin: 0 0 12px;
    color: #fff;
    font-size: clamp(30px, 6vw, 46px);
    line-height: 1.05;
}

.standalone-card p {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 17px;
    line-height: 1.55;
}

.standalone-card .notice {
    color: rgba(255, 255, 255, 0.9);
}

.standalone-card .error {
    color: #ffd7d2;
    font-weight: 750;
}

.standalone-card a {
    color: #fff;
    font-weight: 850;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.4);
    text-underline-offset: 3px;
}

.standalone-card a:hover,
.standalone-card a:focus-visible {
    color: var(--brand-highlight);
    text-decoration-color: currentColor;
}

.standalone-card form {
    display: grid;
    gap: 11px;
    width: 100%;
    margin: 18px 0 0;
}

.standalone-card label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 850;
}

.standalone-card input,
.standalone-card textarea,
.standalone-card select {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    padding: 13px 14px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--ink);
    font: inherit;
    font-size: 15px;
}

.standalone-card input:focus,
.standalone-card textarea:focus,
.standalone-card select:focus {
    border-color: var(--brand-highlight);
    box-shadow: 0 0 0 3px rgba(102, 204, 255, 0.22);
}

.standalone-card button,
.standalone-card .button,
.standalone-card .button-link,
.standalone-card input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    border: 0;
    border-radius: 8px;
    padding: 13px 16px;
    background: var(--brand-accent);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 15px;
    font-weight: 850;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.standalone-card button:hover,
.standalone-card button:focus-visible,
.standalone-card .button:hover,
.standalone-card .button:focus-visible,
.standalone-card .button-link:hover,
.standalone-card .button-link:focus-visible,
.standalone-card input[type="submit"]:hover,
.standalone-card input[type="submit"]:focus-visible {
    background: var(--brand-highlight);
    color: var(--brand-dark);
    box-shadow: 0 0 0 3px rgba(102, 204, 255, 0.28);
    text-decoration: none;
}

.standalone-card .action-panel {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.standalone-card .technical-note {
    font-size: 13px;
}

.standalone-card dl {
    display: grid;
    gap: 8px;
    margin: 12px 0 0;
}

.standalone-card dt {
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.standalone-card dd {
    margin: 2px 0 0;
    color: rgba(255, 255, 255, 0.9);
    overflow-wrap: anywhere;
}

.tour-tooltip {
    --tour-tooltip-bg: var(--eboda-navy);
    --tour-tooltip-text: #ffffff;
    --tour-tooltip-muted: rgba(255, 255, 255, 0.84);
    --tour-tooltip-arrow-size: 10px;

    position: fixed;
    z-index: 80;
    width: min(320px, calc(100vw - 32px));
    padding: 15px 42px 16px 16px;
    border-radius: 8px;
    background: var(--tour-tooltip-bg);
    color: var(--tour-tooltip-text);
    box-shadow: 0 18px 42px rgba(10, 37, 64, 0.24);
    text-align: left;
}

.tour-tooltip[hidden] {
    display: none;
}

.tour-tooltip::after {
    content: "";
    position: absolute;
    width: var(--tour-tooltip-arrow-size);
    height: var(--tour-tooltip-arrow-size);
    background: var(--tour-tooltip-bg);
    transform: rotate(45deg);
}

.tour-tooltip-title {
    display: block;
    margin: 0 0 6px;
    color: var(--tour-tooltip-text);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
}

.tour-tooltip-copy {
    margin: 0;
    color: var(--tour-tooltip-muted);
    font-size: 13px;
    line-height: 1.45;
}

.tour-tooltip-dismiss {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 6px;
    padding: 0;
    background: rgba(255, 255, 255, 0.12);
    color: var(--tour-tooltip-text);
    cursor: pointer;
    font: inherit;
    font-size: 18px;
    line-height: 1;
}

.tour-tooltip-dismiss:hover,
.tour-tooltip-dismiss:focus-visible {
    background: rgba(255, 255, 255, 0.22);
    box-shadow: none;
    outline: 2px solid rgba(255, 255, 255, 0.44);
    outline-offset: 2px;
}

.tour-tooltip--top-left {
    top: 84px;
    left: 18px;
}

.tour-tooltip--top-left::after {
    top: -5px;
    left: 22px;
}

.tour-tooltip--top-right {
    top: 84px;
    right: 18px;
}

.tour-tooltip--top-right::after {
    top: -5px;
    right: 22px;
}

.tour-tooltip--bottom-left {
    bottom: 24px;
    left: 18px;
}

.tour-tooltip--bottom-left::after {
    bottom: -5px;
    left: 22px;
}

.tour-tooltip--bottom-right {
    right: 18px;
    bottom: 48px;
}

.tour-tooltip--bottom-right::after {
    right: 22px;
    bottom: -5px;
}

.tour-tooltip--left {
    top: 50%;
    left: 18px;
    transform: translateY(-50%);
}

.tour-tooltip--left::after {
    top: 50%;
    left: -5px;
    transform: translateY(-50%) rotate(45deg);
}

.tour-tooltip--right {
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
}

.tour-tooltip--right::after {
    top: 50%;
    right: -5px;
    transform: translateY(-50%) rotate(45deg);
}

@media (max-width: 620px) {
    .tour-tooltip,
    .tour-tooltip--top-left,
    .tour-tooltip--top-right,
    .tour-tooltip--bottom-left,
    .tour-tooltip--bottom-right,
    .tour-tooltip--left,
    .tour-tooltip--right {
        right: 12px;
        left: 12px;
        width: auto;
        transform: none;
    }

    .tour-tooltip--top-left,
    .tour-tooltip--top-right,
    .tour-tooltip--left,
    .tour-tooltip--right {
        top: 82px;
        bottom: auto;
    }

    .tour-tooltip--bottom-left,
    .tour-tooltip--bottom-right {
        top: auto;
        bottom: 18px;
    }
}
