/* ============================================================
   Compass Tool – site.css
   Design system extracted from hi-fi wireframes
   ============================================================ */

@font-face {
    font-family: "Frank New";
    src: url("/fonts/FrankNew-Regular.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ── Reset / base ────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: "Roboto", "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    background: var(--ct-bg);
    color: var(--ct-text-primary);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--ct-brand-purple);
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

/* ============================================================
   PUBLIC PAGES  (Login, Register, ForgotPassword, ResetPassword)
   Split-screen: left = form, right = dark illustration panel
   ============================================================ */ .pub-root {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--ct-bg-left);
}

/* ── Split body ─────────────────────────────────────────────── */
.pub-split {
    display: flex;
    flex: 1;
    min-height: calc(100vh - var(--ct-footer-h));
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
}

.pub-left {
    width: var(--ct-split-left);
    min-height: calc(100vh - var(--ct-footer-h));
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 150px;
    background: var(--ct-bg-left);
}

.pub-right {
    width: var(--ct-split-right);
    min-height: calc(100vh - var(--ct-footer-h));
    background: #1A1A2E;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px;
    color: #fff;
}

/* Centred-only pages (ForgotPassword / ResetPassword) — no right panel */ .pub-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 24px;
}

.pub-center-inner {
    width: 100%;
    max-width: 480px;
}

/* ── Logo / brand mark ──────────────────────────────────────── */ .pub-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}

.pub-logo-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1.5px solid #555;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    flex-shrink: 0;
}

.pub-logo-svg {
    width: 26px;
    height: 26px;
}

.pub-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.pub-logo-line1 {
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ct-text-primary);
}

.pub-logo-line2 {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ct-text-primary);
}

/* ── Page headings ───────────────────────────────────────────── */ .pub-heading {
    font-size: 2rem;
    font-weight: 400;
    color: var(--ct-text-primary);
    margin: 0 0 6px;
    line-height: 1.2;
}

.pub-subheading {
    font-size: .9rem;
    color: var(--ct-text-secondary);
    margin: 0 0 28px;
}

/* ── Form fields ─────────────────────────────────────────────── */ .pub-field {
    width: 100%;
    margin-bottom: 16px;
}

.ct-small-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

/* ── Input error state ───────────────────────────────────────── */ .pub-input-error .k-input, .pub-input-error.k-textbox {
    border-bottom-color: var(--ct-error) !important;
    border: 1px solid var(--ct-error) !important;
    border-radius: var(--ct-radius-sm) !important;
    background: #fff8f8 !important;
}

.pub-field-error {
    font-size: .78rem;
    color: var(--ct-error);
    margin-top: 3px;
}

/* ── Forgot password link (right-aligned) ────────────────────── */ .pub-forgot-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
    margin-top: -8px;
}

    .pub-forgot-row a {
        font-size: .82rem;
        color: var(--ct-brand-purple);
        font-weight: 500;
    }

/* ── Primary CTA button ─────────────────────────────────────── */ .pub-btn {
    width: 100%;
    margin-top: 4px;
    margin-bottom: 20px;
}

    .pub-btn .k-button, .pub-btn button {
        width: 100% !important;
        background: var(--ct-brand-purple) !important;
        border-color: var(--ct-brand-purple) !important;
        color: #fff !important;
        font-size: .9rem !important;
        font-weight: 500 !important;
        padding: 13px 20px !important;
        border-radius: var(--ct-radius-sm) !important;
        letter-spacing: .02em;
        cursor: pointer;
        transition: background.15s;
    }

        .pub-btn .k-button:hover, .pub-btn button:hover {
            background: var(--ct-brand-purple-h) !important;
            border-color: var(--ct-brand-purple-h) !important;
        }

/* ── T&C checkbox ────────────────────────────────────────────── */ .pub-checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    font-size: .82rem;
    color: var(--ct-text-secondary);
}

    .pub-checkbox-row a {
        color: var(--ct-brand-purple);
    }

/* ── Bottom text link (New to Compass? / Already have account?) */ .pub-bottom-link {
    font-size: .85rem;
    color: var(--ct-text-secondary);
    text-align: left;
}

    .pub-bottom-link a {
        color: var(--ct-brand-purple);
        font-weight: 500;
    }

/* ── Error banner (login page) ───────────────────────────────── */ .pub-alert-error {
    background: var(--ct-error-bg);
    border: 1px solid var(--ct-error-border);
    border-radius: var(--ct-radius-sm);
    color: var(--ct-error);
    font-size: .85rem;
    padding: 10px 14px;
    margin-bottom: 18px;
    width: 100%;
}

/* ── Success banner (forgot password sent) ───────────────────── */ .pub-alert-success {
    background: var(--ct-success-bg);
    border-left: 4px solid #66BB6A;
    color: var(--ct-success);
    font-size: .85rem;
    padding: 12px 16px;
    border-radius: var(--ct-radius-sm);
    margin-bottom: 20px;
    width: 100%;
}

/* ── Resend / back links ─────────────────────────────────────── */ .pub-resend-row {
    font-size: .85rem;
    color: var(--ct-text-secondary);
    margin-top: 16px;
}

    .pub-resend-row a {
        color: var(--ct-brand-purple);
        font-weight: 500;
    }

/* ── Right panel — illustration ──────────────────────────────── */ .pub-illus {
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.pub-illus-graphic {
    width: 100%;
    max-width: 420px;
    height: auto;
    display: block;
}

.pub-illus-caption {
    font-size: 1.1rem;
    font-weight: 400;
    color: #fff;
    text-align: center;
    line-height: 1.5;
    max-width: 280px;
}

/* ── Page-level footer ───────────────────────────────────────── */ .pub-footer {
    height: var(--ct-footer-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    background: var(--ct-bg-left);
    border-top: 1px solid var(--ct-border);
    flex-shrink: 0;
}

.pub-footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pub-footer-logo-text {
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ct-text-primary);
    line-height: 1.3;
}

.pub-footer-ivey {
    border: 1px solid var(--ct-border);
    padding: 4px 10px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.pub-footer-ivey-label {
    font-size: .6rem;
    color: var(--ct-text-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.pub-footer-ivey-name {
    font-size: .75rem;
    font-weight: 700;
    color: #4a235a;
}

.pub-footer-social {
    display: flex;
    gap: 0px;
}

.pub-social-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid var(--ct-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ct-text-secondary);
    font-size: .7rem;
    font-weight: 700;
    cursor: pointer;
}

/* ── Social icon images ──────────────────────────────────────── */ .pub-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    opacity: .75;
    transition: opacity.15s;
}

    .pub-social-link:hover {
        opacity: 1;
    }

.pub-social-icon-img {
    width: 22px;
    height: 22px;
    display: block;
}

/* ── Compass logo (public pages) ─────────────────────────────── */ .pub-logo-img {
    height: 36px;
    width: auto;
    display: block;
}

/* ============================================================
   AUTHENTICATED APP  (Home / About / inner pages)
   ============================================================ */

/* ── App header ─────────────────────────────────────────────── */ .app-header {
    background: var(--ct-brand-dark);
    height: var(--ct-app-header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 200;
}

.app-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-header-logo-img {
    height: 28px;
    width: auto;
    display: block;
}

.app-header-user-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    color: #fff;
}

.app-header-chevron {
    font-size: .65rem;
    opacity: .6;
    margin-left: 2px;
}

.app-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.app-header-logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.app-header-project-context {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.app-header-project-divider {
    width: 1px;
    height: 28px;
    background: rgba(255,255,255,.18);
    flex-shrink: 0;
}

.app-header-project-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.app-header-project-label {
    font-size: 10px;
    line-height: 1.2;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255,255,255,.58);
}

.app-header-project-title {
    color: rgba(255,255,255,.92);
    font-size: 17px;
    line-height: 1.3;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 360px;
}

.app-header-logo-link:focus-visible {
    outline: 3px solid rgba(255,255,255,.22);
    outline-offset: 4px;
    border-radius: 4px;
}

/* ── App header nav ──────────────────────────────────────────── */ .app-header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .app-header-nav a, .app-header-nav-item {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 18px;
        color: rgba(255,255,255,.85);
        font-size: var(--kendo-font-size-md, 14px);
        font-weight: var(--kendo-font-weight-normal, 400);
        letter-spacing: 0.25px;
        line-height: var(--kendo-line-height-md, 1.43);
        border-radius: var(--ct-radius-sm);
        border: 1px solid transparent;
        cursor: pointer;
        transition: all.2s ease;
        text-decoration: none;
    }

        .app-header-nav a:hover, .app-header-nav-item:hover {
            background: rgba(255,255,255,.08);
            color: var(--ct-brand-gold);
            text-decoration: none;
        }

.app-header-user {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,.85);
    font-size: var(--kendo-font-size-md, 14px);
    font-weight: var(--kendo-font-weight-normal, 400);
    letter-spacing: 0.25px;
    line-height: var(--kendo-line-height-md, 1.43);
    cursor: pointer;
    padding: 8px 18px;
    border-radius: var(--ct-radius-sm);
    border: 1px solid transparent;
    transition: all.2s ease;
}

    .app-header-user:hover {
        background: rgba(255,255,255,.08);
        color: var(--ct-brand-gold);
    }

/* ── Nav icons ───────────────────────────────────────────────── */ .app-nav-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

.icon-projects {
    background-image: url('/images/icon-projects.svg');
}

.icon-resources {
    background-image: url('/images/icon-resources.svg');
}

.icon-support {
    background-image: url('/images/icon-support.svg');
}

.icon-user {
    background-image: url('/images/icon-user.svg');
}

.app-header-nav a:hover .icon-projects, .app-header-nav-item:hover.icon-projects {
    background-image: url('/images/icon-projects-hover.svg');
}

.app-header-nav a:hover .icon-resources, .app-header-nav-item:hover.icon-resources {
    background-image: url('/images/icon-resources-hover.svg');
}

.app-header-nav a:hover .icon-support, .app-header-nav-item:hover.icon-support {
    background-image: url('/images/icon-support-hover.svg');
}

.app-header-user:hover .icon-user {
    background-image: url('/images/icon-user-hover.svg');
}

/* ── Active nav item (current page) ─────────────────────────── */ .nav-active {
    background: rgba(255,255,255,.08) !important;
    color: var(--ct-brand-gold) !important;
}

a.nav-active .icon-projects {
    background-image: url('/images/icon-projects-hover.svg') !important;
}

a.nav-active .icon-resources {
    background-image: url('/images/icon-resources-hover.svg') !important;
}

a.nav-active .icon-support {
    background-image: url('/images/icon-support-hover.svg') !important;
}

/* ── App footer ─────────────────────────────────────────────── */
.app-footer 
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    height: var(--ct-footer-h);
    border-top: 1px solid var(--ct-border);
    background: var(--ct-bg);
    margin-top: 10px;
}

/* ── Page content wrapper ────────────────────────────────────── */ .app-content-wrapper {
    min-height: calc(100vh - var(--ct-app-header-h) - var(--ct-footer-h));
    background: var(--ct-bg);
}

/* ============================================================
   HOME PAGE
   ============================================================ */ .home-layout {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px 24px;
    background: var(--ct-bg);
}

.home-sub-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--ct-border);
    background: var(--ct-bg);
}

.home-sub-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .9rem;
    font-weight: 500;
    color: var(--ct-text-primary);
    cursor: pointer;
}

    .home-sub-header-left span {
        color: var(--ct-text-secondary);
        font-size: .85rem;
    }

.home-export-btn .k-button {
    border: 1px solid var(--ct-brand-purple) !important;
    color: var(--ct-brand-purple) !important;
    background: transparent !important;
    font-size: .82rem !important;
    padding: 6px 14px !important;
    border-radius: var(--ct-radius-sm) !important;
}

/* Left panel */ .home-left {
    width: 340px;
    flex-shrink: 0;
    background: var(--ct-surface);
    border: 1px solid var(--ct-border);
    border-radius: var(--ct-radius);
    box-shadow: var(--ct-shadow-card);
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.home-project-card {
    background: var(--ct-surface);
    border: 1px solid var(--ct-border);
    border-radius: var(--ct-radius);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.home-project-section {
    border-bottom: 1px solid var(--ct-border);
    padding-bottom: 14px;
}

    .home-project-section:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

.home-project-label {
    font-size: .75rem;
    font-weight: 700;
    color: var(--ct-brand-purple);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 4px;
}

.home-project-title {
    font-size: .95rem;
    font-weight: 500;
    color: var(--ct-text-primary);
    margin-bottom: 4px;
}

.home-project-meta {
    font-size: .75rem;
    color: var(--ct-text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.home-project-body {
    font-size: .85rem;
    color: var(--ct-text-secondary);
    line-height: 1.5;
}

.home-tip-card {
    background: #EDE9FF;
    border-radius: var(--ct-radius);
    padding: 14px;
}

.home-tip-title {
    font-size: .85rem;
    font-weight: 700;
    color: var(--ct-text-primary);
    margin-bottom: 4px;
}

.home-tip-body {
    font-size: .82rem;
    color: var(--ct-text-secondary);
    line-height: 1.5;
}

/* Right panel — compass */ .home-right {
    flex: 1;
    background: var(--ct-surface);
    border: 1px solid var(--ct-border);
    border-radius: var(--ct-radius);
    box-shadow: var(--ct-shadow-card);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 24px;
}

.home-compass-panel {
    background: #1A1A2E;
    border-radius: var(--ct-radius);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.home-compass-svg {
    width: 100%;
    max-width: 480px;
    height: auto;
}

/* ============================================================
   ABOUT / SECONDARY PAGES
   ============================================================ */ .inner-page {
    padding: 32px;
}

.inner-page-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--ct-text-primary);
    margin: 0 0 8px;
}

.inner-card {
    background: var(--ct-surface);
    border: 1px solid var(--ct-border);
    border-radius: var(--ct-radius);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--ct-shadow-card);
}

/* ── Auth guard ──────────────────────────────────────────────── */ .auth-guard-message {
    text-align: center;
    padding: 64px 24px;
    color: var(--ct-text-secondary);
}

/* ── Error page ─────────────────────────────────────────────── */ .error-page {
    padding: 48px 24px;
    text-align: center;
}

.error-title {
    color: var(--ct-error);
}

.not-found-msg {
    padding: 48px 24px;
    text-align: center;
    color: var(--ct-text-secondary);
}

/* ============================================================
   TYPOGRAPHY SCALE
   ============================================================ */ 
.ct-h1 {
    font-size: var(--kendo-h1-font-size, 57px);
    font-family: var(--kendo-h1-font-family, inherit);
    line-height: var(--kendo-h1-line-height, 1.12);
    font-weight: var(--kendo-h1-font-weight, 400);
    letter-spacing: var(--kendo-h1-letter-spacing, -0.25px);
    margin: 0;
}

.ct-h2 {
    font-size: var(--kendo-h2-font-size, 45px);
    font-family: var(--kendo-h2-font-family, inherit);
    line-height: var(--kendo-h2-line-height, 1.15);
    font-weight: var(--kendo-h2-font-weight, 400);
    letter-spacing: var(--kendo-h2-letter-spacing, 0px);
    margin: 0;
}

.ct-h3 {
    font-size: var(--kendo-h3-font-size, 36px);
    font-family: var(--kendo-h3-font-family, inherit);
    line-height: var(--kendo-h3-line-height, 1.22);
    font-weight: var(--kendo-h3-font-weight, 400);
    letter-spacing: var(--kendo-h3-letter-spacing, 0px);
    margin: 0;
}

.ct-h4 {
    font-size: var(--kendo-h4-font-size, 32px);
    font-family: var(--kendo-h4-font-family, inherit);
    line-height: var(--kendo-h4-line-height, 1.25);
    font-weight: var(--kendo-h4-font-weight, 400);
    letter-spacing: var(--kendo-h4-letter-spacing, 0px);
    margin: 0;
}

.ct-h5 {
    font-size: var(--kendo-h5-font-size, 28px);
    font-family: var(--kendo-h5-font-family, inherit);
    line-height: var(--kendo-h5-line-height, 1.28);
    font-weight: var(--kendo-h5-font-weight, 400);
    letter-spacing: var(--kendo-h5-letter-spacing, 0px);
    margin: 0;
}

.ct-h6 {
    font-size: var(--kendo-h6-font-size, 24px);
    font-family: var(--kendo-h6-font-family, inherit);
    line-height: var(--kendo-h6-line-height, 1.5);
    font-weight: var(--kendo-h6-font-weight, 400);
    letter-spacing: var(--kendo-h6-letter-spacing, 0px);
    margin: 0;
}

.ct-body-xl {
    font-size: var(--kendo-paragraph-font-size, 22px);
    font-family: var(--kendo-paragraph-font-family, inherit);
    line-height: var(--kendo-paragraph-line-height, 1.27);
    font-weight: var(--kendo-paragraph-font-weight, 400);
    letter-spacing: 0px;
}

.ct-body-lger {
    font-size: var(--kendo-font-size-lg, 20px);
    font-family: var(--kendo-paragraph-font-family, inherit);
    line-height: var(--kendo-line-height-lg, 1.5);
    font-weight: var(--kendo-font-weight-normal, 400);
    letter-spacing: 0.5px;
}

.ct-body-lg {
    font-size: var(--kendo-font-size-lg, 16px);
    font-family: var(--kendo-paragraph-font-family, inherit);
    line-height: var(--kendo-line-height-lg, 1.5);
    font-weight: var(--kendo-font-weight-normal, 400);
    letter-spacing: 0.5px;
}

.ct-body {
    font-size: var(--kendo-font-size-md, 14px);
    font-family: var(--kendo-paragraph-font-family, inherit);
    line-height: var(--kendo-line-height-md, 1.43);
    font-weight: var(--kendo-font-weight-normal, 400);
    letter-spacing: 0.25px;
}

.ct-button-text {
    font-size: var(--kendo-font-size-md, 14px);
    font-family: var(--kendo-paragraph-font-family, inherit);
    line-height: var(--kendo-line-height-md, 1.43);
    font-weight: var(--kendo-font-weight-medium, 500);
    letter-spacing: 0.1px;
}

.ct-small {
    font-size: var(--kendo-font-size-sm, 12px);
    font-family: var(--kendo-paragraph-font-family, inherit);
    line-height: var(--kendo-line-height-sm, 1.33);
    font-weight: var(--kendo-font-weight-normal, 400);
    letter-spacing: 0.5px;
}

.ct-x-small {
    font-size: var(--kendo-font-size-xs, 10px);
    font-family: var(--kendo-paragraph-font-family, inherit);
    line-height: var(--kendo-line-height-xs, 1.6);
    font-weight: var(--kendo-font-weight-normal, 400);
    letter-spacing: 0.5px;
}

/* ── Password rule checklist ─────────────────────────────────── */ .pwd-rules {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pwd-rule-ok, .pwd-rule-fail {
    font-size: var(--kendo-font-size-sm, 12px);
    display: flex;
    align-items: center;
    gap: 6px;
}

    .pwd-rule-ok::before {
        content: "✓";
        color: var(--ct-success);
        font-weight: 700;
        width: 14px;
    }

    .pwd-rule-fail::before {
        content: "✕";
        color: var(--ct-error);
        font-weight: 700;
        width: 14px;
    }

.pwd-rule-ok {
    color: var(--ct-success);
}

.pwd-rule-fail {
    color: var(--ct-error);
}

/* ============================================================
   PROJECTS PAGE
   ============================================================ */ 
.projects-page {
    padding: 32px 40px;
    max-width: 871px;
    margin: 0 auto;
}

.projects-heading {
    margin: 0 0 24px;
    color: var(--ct-text-primary);
}

.projects-instruction {
    margin: 8px 0 12px;
    max-width: 720px;
    color: var(--ct-text-secondary);
    line-height: 1.5;
}

.projects-watch-video {
    display: inline-block;
    margin: 0 0 24px;
}

/* ── Notification banner ─────────────────────────────────────── */
.projects-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-radius: var(--ct-radius-sm);
    margin-bottom: 20px;
    font-size: .875rem;
    text-align: center;
    position: relative;
}

.projects-banner-success {
    background: #E8F5E9;
    border: 1px solid #A5D6A7;
    color: var(--ct-success);
}

.projects-banner-error {
    background: var(--ct-error-bg);
    border: 1px solid var(--ct-error-border);
    color: var(--ct-error);
}

.projects-banner-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: inherit;
    opacity: .7;
    padding: 0 4px;
    line-height: 1;
    position: absolute;
    right: 12px;
}

    .projects-banner-close:hover {
        opacity: 1;
    }

/* ── Project cards ───────────────────────────────────────────── */ .project-card {
    background: var(--ct-surface);
    border: 1px solid var(--ct-border);
    border-radius: var(--ct-radius);
    padding: 20px 20px 20px 24px;
    margin-bottom: 12px;
    box-shadow: var(--ct-shadow-card);
}

/* Create form card */ .project-card-create {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.project-card-create-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 4px;
}

/* Normal project item card */ .project-card-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    transition: box-shadow.15s, border-color.15s;
    padding: 20px 20px 20px 24px;
}

    .project-card-item:hover {
        box-shadow: 0 4px 12px rgba(0,0,0,.1);
        border-color: #ccc;
    }

.project-card-main {
    flex: 1;
    min-width: 0;
}

.project-card-title {
    color: var(--ct-text-primary);
    margin-bottom: 4px;
}

.project-card-meta {
    color: var(--ct-text-muted);
    letter-spacing: .04em;
    text-transform: uppercase;
}

.project-card-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.project-action-btn {
    width: 38px !important;
    height: 38px !important;
    padding: 0 !important;
    background-color: #FEFBFF !important;
    border: 1px solid var(--ct-border) !important;
}

.btn-icon {
    display: block;
    border: none;
    outline: none;
}

/* Inline edit row */ .project-edit-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.project-edit-input 
{
    flex: 1;
}

.project-edit-confirm {
    background: #388E3C !important;
    border-color: #388E3C !important;
    color: #fff !important;
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
}

.project-edit-cancel {
    width: 38px !important;
    height: 38px !important;
    padding: 0 !important;
    font-size: 1.1rem !important;
}

.project-card-editing {
    display: block;
}

/* Add project / max reached card */ .project-card-add {
    border: 1.5px dashed var(--ct-border);
    background: transparent;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 28px 24px;
    cursor: pointer;
    text-align: center;
    transition: border-color.15s;
}

    .project-card-add:hover:not(.project-card-maxed) {
        border-color: var(--ct-brand-purple);
    }

.project-card-maxed {
    cursor: default;
}

.project-add-text {
    color: var(--ct-text-muted);
    font-size: .95rem;
}

.project-add-count {
    color: var(--ct-text-muted);
}

.project-add-icon {
    color: var(--ct-text-muted);
    font-size: 1.4rem;
    margin-top: 4px;
}

.project-add-maxed-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--ct-text-muted);
    font-size: .875rem;
}

    .project-add-maxed-text strong {
        color: var(--ct-text-primary);
        font-weight: 600;
    }

/* ── Empty state card ────────────────────────────────────────── */ .project-card-empty {
    border: 1.5px dashed var(--ct-border);
    background: transparent;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 48px 24px;
    text-align: center;
}

.project-empty-title {
    color: var(--ct-text-muted);
}

.project-empty-subtitle {
    color: var(--ct-text-muted);
    margin-bottom: 8px;
}

.project-card-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background-color .16s ease;
    padding: 20px 20px 20px 24px;
}

    .project-card-item:hover,
    .project-card-item:focus-visible {
        transform: translateY(-3px);
        box-shadow: 0 10px 24px rgba(0,0,0,.10);
        border-color: #b9b2c9;
    }

    .project-card-item:focus-visible {
        outline: 3px solid rgba(94, 10, 255, .20);
        outline-offset: 2px;
    }

.project-card-main {
    flex: 1;
    min-width: 0;
}

.project-card-title-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.project-card-title {
    color: var(--ct-brand-purple);
    margin-bottom: 4px;
    transition: color .15s ease, text-decoration-color .15s ease;
}

/*.project-card-open-affordance {
    color: var(--ct-text-muted);
    white-space: nowrap;
    opacity: .9;
    transition: transform .15s ease, color .15s ease;
}*/

.project-card-item:hover .project-card-title,
.project-card-item:focus-visible .project-card-title {
    text-decoration: underline;
}

/*.project-card-item:hover .project-card-open-affordance,
.project-card-item:focus-visible .project-card-open-affordance {
    color: var(--ct-brand-purple);
    transform: translateX(2px);
}*/

/* ── Trailing chevron indicating the card is a link ──────────── */
.project-card-chevron {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-left: 8px;
    font-size: 2.25rem;
    line-height: 1;
    color: var(--ct-text-muted);
    font-weight: 300;
    user-select: none;
    transition: transform .18s ease, color .18s ease;
}

.project-card-item:hover .project-card-chevron,
.project-card-item:focus-visible .project-card-chevron {
    color: var(--ct-brand-purple);
    transform: translateX(4px);
}

.project-card-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.project-action-btn {
    width: 38px !important;
    height: 38px !important;
    padding: 0 !important;
    background-color: #FEFBFF !important;
    border: 1px solid var(--ct-border) !important;
}

    .project-action-btn:hover {
        border-color: var(--ct-brand-purple) !important;
    }

/* ============================================================
   GLOBAL KENDO INPUT STYLING
   ============================================================ */
.k-textbox, .k-input, .k-textarea, .k-textbox.k-input-solid, .k-input.k-input-solid, .k-textbox.k-input-solid.k-rounded-md, .k-input.k-input-solid.k-rounded-md {
    background-color: #ffffff !important;
    background: #ffffff !important;
    border: 1px solid var(--ct-border-input) !important;
    border-bottom: 1.5px solid var(--ct-border-input) !important;
    border-radius: var(--ct-radius-sm) var(--ct-radius-sm) 0 0 !important;
    box-shadow: none !important;
    transition: all.2s ease;
}

    .k-textbox:focus-within, .k-input:focus-within, .k-textarea:focus-within, .k-textbox.k-input-solid:focus-within, .k-input.k-input-solid:focus-within {
        border: 1px solid var(--ct-brand-purple-light) !important;
        border-bottom: 3px solid var(--ct-brand-purple-focus) !important;
        border-radius: var(--ct-radius-sm) !important;
        outline: none !important;
        box-shadow: none !important;
        background-color: #ffffff !important;
    }

    .k-textbox.k-input-inner, .k-input.k-input-inner, .k-textarea.k-input-inner {
        background: transparent !important;
    }

.k-input-inner {
    color: #000;
}

/* ── Show password button ────────────────────────────────────── */ .k-input-suffix .k-button {
    --kendo-color-base: #ffffff !important;
    --kendo-color-base-hover: #ffffff !important;
    --kendo-color-base-active: #ffffff !important;
    --kendo-color-on-base: #4A4459 !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

.k-input-separator, .k-input-separator-vertical {
    display: none !important;
}

/* ============================================================
   NORTH AND NEAR STARS PAGE
   ============================================================ */ .nns-page {
    max-width: 100%;
    padding: 0;
    margin: 0;
}

/* ── Save banner ─────────────────────────────────────────────── */ .nns-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 40px;
    font-size: .875rem;
    border-left: 4px solid;
}

.nns-banner-success {
    background: var(--ct-success-bg);
    border-left-color: #66BB6A;
    color: var(--ct-success);
}

.nns-banner-error {
    background: var(--ct-error-bg);
    border-left-color: var(--ct-error);
    color: var(--ct-error);
}

.nns-banner-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: inherit;
    opacity: .7;
    padding: 0 4px;
    line-height: 1;
}

    .nns-banner-close:hover {
        opacity: 1;
    }

/* ── Grey header zone (full width, content constrained) ──────── */
.nns-header-zone {
    background: rgba(29, 27, 32, 0.05);
    padding: 35px 40px 20px;
    margin-bottom: 24px;
    padding-bottom: 16px;
}

.nns-header-zone-inner {
    max-width: 1440px;
    margin: 0 auto;
}

/* ── Back link ───────────────────────────────────────────────── */ .nns-back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--ct-text-primary);
    font-weight: 500;
    margin-bottom: 12px;
    text-decoration: none;
    font-size: 16px;
}

    .nns-back-link:hover {
        color: var(--ct-brand-purple);
        text-decoration: none;
    }

    .nns-back-link span {
        font-size: 1.2rem;
        line-height: 1;
        display: inline-flex;
        align-items: center;
        height: 1em; /* match the text's cap height roughly */
        position: relative;
        top: -1px;
    }

/* ── Page header ─────────────────────────────────────────────── */ .nns-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.nns-header-left {
    flex: 1;
    min-width: 0;
}

.nns-header-icon-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.nns-stars-icon {
    /*    width: 28px;
    height: 28px;*/
    display: block;
}

.nns-header-text {
    flex: 1;
    min-width: 0;
}

.nns-stars-column {
    flex-shrink: 0;
    padding-top: 4px;
}

.nns-description {
    color: var(--ct-text-secondary);
    margin: 0 0 8px;
}

.nns-watch-video {
    color: var(--ct-brand-purple);
    cursor: pointer;
    font-weight: 500;
}

    .nns-watch-video:hover {
        text-decoration: underline;
    }

.nns-header-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    align-items: flex-start;
    padding-top: 8px;
}

/* ── Star cards ──────────────────────────────────────────────── */ .nns-card {
    background: var(--ct-surface);
    border: 1px solid var(--ct-border);
    border-radius: var(--ct-radius);
    padding: 20px 24px;
    box-shadow: var(--ct-shadow-card);
    flex: 1;
    display: flex;
    flex-direction: column;
}

    /* Force Kendo textarea to fill the card */ .nns-card .k-textarea {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
    }

        .nns-card .k-textarea textarea, .nns-card .k-textarea.k-input-inner {
            flex: 1 1 auto !important;
            height: auto !important;
            min-height: 80px !important;
            resize: none !important;
        }

        .nns-card .k-textarea [class*="flex-none"] {
            flex: 1 1 auto !important;
        }

.nns-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.nns-card-title {
    color: var(--ct-brand-purple-nn);
    margin: 0;
}

.nns-info-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--ct-brand-purple);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    font-style: normal;
    flex-shrink: 0;
}

.nns-card-instruction {
    color: var(--ct-text-secondary);
    margin: 0 0 12px;
}

.nns-field-error {
    color: var(--ct-error);
    margin-top: 4px;
}

/* ── Inline button icon ──────────────────────────────────────── */ 
.btn-icon-inline {
    width: 14px;
    height: 14px;
    margin-right: 4px;
    vertical-align: middle;
}

.k-dialog .k-dialog-titlebar:empty, .k-dialog .k-dialog-titlebar:not(:has(.k-dialog-title:not(:empty))) {
    min-height: 0;
    padding: 8px 16px 0;
}

/* ── Dialog text color fix ───────────────────────────────────── */
.k-dialog .k-dialog-content, .k-dialog .k-dialog-content p {
    color: var(--ct-text-primary) !important;
    font-size: 20px;
    margin: 0;
    text-align: center;
    padding: 0px 0px 12px 0px;
}
    /* ── Dialog text color fix ───────────────────────────────────── */
    .k-dialog .k-dialog-titlebar, .k-dialog .k-dialog-title, .k-dialog .k-dialog-content, .k-dialog .k-dialog-content p {
        color: var(--ct-text-primary) !important;
        /*font-size: 1.1rem;*/
        font-size: 20px;
        margin: 0;
    }
.k-dialog .k-dialog-actions {
    padding: 0 24px 20px;
}
/*    .k-dialog .k-dialog-actions .k-button-flat, .k-dialog .k-dialog-actions .k-button-outline {
        border: 1px solid var(--ct-brand-purple-dark) !important;
        color: var(--ct-brand-purple-dark) !important;
    }*/
    .k-dialog .k-dialog-actions.k-button-solid-primary {
        color: #fff !important;
    }

/* ── Export validation modal ─────────────────────────────────── */ 
.compass-export-modal {
    background: #fff;
    border-radius: var(--ct-radius-lg);
    width: 100%;
    max-width: 420px;
    padding: 36px 40px 28px;
    position: relative;
    text-align: center;
}

.compass-export-modal-icon {
    margin-bottom: 20px;
}

    .compass-export-modal-icon img {
        width: 48px;
        height: 48px;
    }

.compass-export-modal-text {
    color: var(--ct-text-primary);
    margin: 0 0 24px;
    line-height: 1.4;
}

.compass-export-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* ============================================================
   SUPPORT PAGE
   ============================================================ */ 
.support-page {
    display: flex;
    justify-content: center;
    padding: 48px 40px;
}

.support-content {
    width: 100%;
    max-width: 680px;
    background: var(--ct-surface);
    border-radius: var(--ct-radius);
    padding: 40px 48px;
    box-shadow: var(--ct-shadow-card);
}

.support-heading {
    margin: 0 0 8px;
    color: var(--ct-text-primary);
}

.support-description {
    color: var(--ct-text-secondary);
    margin: 0 0 24px;
    line-height: 1.5;
}

/* ── Success banner ──────────────────────────────────────────── */ 
.support-banner-success {
    background: var(--ct-success-bg);
    border-left: 4px solid #66BB6A;
    color: var(--ct-success);
    font-size: .875rem;
    padding: 12px 16px;
    border-radius: var(--ct-radius-sm);
    margin-bottom: 20px;
}

/* ── Form fields ─────────────────────────────────────────────── */ 
.support-field {
    margin-bottom: 24px;
}

.support-label {
    display: block;
    color: var(--ct-text-primary);
    margin-bottom: 8px;
}

.support-field-error {
    color: var(--ct-error);
    margin-top: 4px;
}

/* ── Submit button ───────────────────────────────────────────── */ 
.support-submit {
    margin-top: 8px;
}

/* ============================================================
   FRAMING PROBLEMS PAGE
   ============================================================ */ .fp-page {
    max-width: 100%;
    padding: 0;
    margin: 0;
}

.fp-content-wrapper {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 0px 48px;
}

/* ── Full-width cards ────────────────────────────────────────── */ .fp-card-full {
    flex: none;
    margin-bottom: 20px;
}

/* ── Badge placeholder ───────────────────────────────────────── */ .fp-badge-placeholder {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.fp-badge-icon {
    width: 48px;
    height: 48px;
    display: block;
}

/* If no image yet, show a circle placeholder */ .fp-badge-placeholder:empty {
    background: var(--ct-brand-gold);
    border-radius: 50%;
    border: 2px solid var(--ct-brand-dark);
}

/* ── Impacts grid ────────────────────────────────────────────── */ .fp-impacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
    margin-top: 8px;
}

.fp-impact-column {
    min-width: 0;
}

.fp-impact-heading {
    font-weight: 600;
    color: var(--ct-text-primary);
    margin: 0 0 8px;
}

.fp-impact-input-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

    .fp-impact-input-row.k-textbox, .fp-impact-input-row.k-input {
        flex: 1;
    }

.fp-add-btn {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    padding: 0 !important;
    font-size: 1.2rem !important;
    flex-shrink: 0;
}

.fp-max-message {
    color: var(--ct-text-muted);
    margin-bottom: 8px;
    font-style: italic;
}

/* ── Impact tags ─────────────────────────────────────────────── */ 
.fp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fp-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--kendo-color-primary-subtle, #efe7ff);
    font-size: var(--kendo-font-size-md, 14px);
    font-weight: 500;
    padding: 5px 10px 5px 12px;
    border-radius: var(--ct-radius-sm);
    white-space: nowrap;
    height: 32px;
}

.fp-tag-remove {
    background: none;
    border: none;
    color: var(--ct-brand-purple-nn);
    font-size: .75rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: .7;
    transition: opacity.15s;
}

    .fp-tag-remove:hover {
        opacity: 1;
    }

/* ── Dirty state marker (used by beforeunload JS) ────────────── */ .fp-page[data-dirty="true"] {
    /* no visual change — just a JS hook */
}



.nns-tooltip-content {
    max-width: 400px;
    font-size: .82rem;
    line-height: 1.5;
}

    .nns-tooltip-content p {
        margin: 0 0 10px;
    }

        .nns-tooltip-content p:last-child {
            margin-bottom: 0;
        }

/* ── Impact input treatment ──────────────────────────────────── */ 
.fp-impact-input-row .k-textbox, .fp-impact-input-row.k-input {
    border: 1px solid var(--ct-border-input) !important;
    border-radius: var(--ct-radius-sm) var(--ct-radius-sm) 0 0 !important;
    background: var(--ct-surface) !important;
    width: 240px;
}

    .fp-impact-input-row .k-textbox:focus-within, .fp-impact-input-row.k-input:focus-within {
        border: 1px solid var(--ct-brand-purple-light) !important;
        border-bottom: 3px solid var(--ct-brand-purple-focus) !important;
        border-radius: var(--ct-radius-sm) !important;
    }

/* ============================================================
   EXPLORING PATTERNS PAGE
   ============================================================ */

/* ── Systems Map card — taller ───────────────────────────────── */ 
.ep-map-card {
    min-height: 480px;
}

.ep-diagram-wrapper {
    flex: 1;
    min-height: 500px;
    border: 1px solid var(--ct-border);
    border-radius: var(--ct-radius-sm);
    overflow: hidden;
}

.ep-map-card .ep-diagram-wrapper {
    min-height: 400px;
}

/* ── Tooltip link styling ────────────────────────────────────── */ 
.ep-tooltip-link {
    color: #fff;
    text-decoration: underline;
    font-size: .8rem;
}

    .ep-tooltip-link:hover {
        color: var(--ct-brand-gold);
    }

a {
    color: #fff;
    text-decoration: underline;
    font-size: .8rem;
}

    a:hover {
        color: var(--ct-brand-gold);
    }

/* ============================================================
   IMAGINING POSSIBILITIES PAGE
   ============================================================ */ 
.ip-content-wrapper {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 0px 48px;
}

.ip-layout {
    display: grid;
    grid-template-columns: 319px 1fr;
    gap: 24px;
    align-items: start;
}

/* ── Left sidebar ────────────────────────────────────────────── */ 
.ip-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: calc(var(--ct-app-header-h) + 20px);
}

.ip-sidebar-card {
    background: var(--ct-surface);
    border: 1px solid var(--ct-border);
    border-radius: var(--ct-radius);
    padding: 16px;
    box-shadow: var(--ct-shadow-card);
}

.ip-sidebar-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.ip-sidebar-desc {
    color: var(--ct-text-secondary);
    margin: 0 0 12px;
    line-height: 1.4;
}

/* ── Ideas board ─────────────────────────────────────────────── */ 
.ip-board {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

/* ── Cluster section ─────────────────────────────────────────── */ 
.ip-cluster-section {
    background: var(--ct-surface);
    border: 1px solid var(--ct-border);
    border-radius: var(--ct-radius);
    padding: 20px 24px;
    box-shadow: var(--ct-shadow-card);
    min-height: 120px;
    transition: border-color.2s, background.2s;
}

    .ip-cluster-section.ip-drop-active {
        border-color: var(--ct-brand-purple);
        background: rgba(94, 10, 255, 0.03);
    }

.ip-cluster-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--ct-border);
    padding-bottom: 12px;
    background: #FEFBFF;
    margin: -20px -24px 16px;
    padding: 12px 24px;
    border-radius: var(--ct-radius) var(--ct-radius) 0 0;
}

.ip-cluster-name {
    color: var(--ct-brand-purple);
    font-weight: 600;
    margin: 0;
}

.ip-cluster-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.ip-cluster-edit-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.ip-cluster-edit-input {
    flex: 1;
}

/* ── Ideas grid ──────────────────────────────────────────────── */ 
.ip-ideas-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ── Idea card ───────────────────────────────────────────────── */
.ip-idea-card {
    background: #FEFBFF;
    border: 1px solid var(--ct-border);
    border-radius: var(--ct-radius);
    padding: 12px 14px 0;
    display: flex;
    flex-direction: column;
    min-height: 80px;
}

.ip-idea-editing { //not sure
    gap: 8px;
}

.ip-idea-text {
    color: var(--ct-text-primary);
    line-height: 1.5;
    flex: 1;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--ct-border);
    margin-left: -14px;
    margin-right: -14px;
    padding-left: 14px;
    padding-right: 14px;
}

.ip-idea-actions {
    display: flex;
    align-items: center;
    padding: 6px 0;
}

.ip-idea-handle {
    cursor: grab;
    color: var(--ct-text-muted);
    font-size: 1rem;
    user-select: none;
    padding: 2px 4px;
    border-radius: 2px;
    transition: color.15s;
}

    .ip-idea-handle:hover {
        color: var(--ct-brand-purple);
    }

    .ip-idea-handle:active {
        cursor: grabbing;
    }

.ip-idea-actions-right {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
}

.ip-idea-action-btn {
    width: 20px !important;
    height: 28px !important;
    min-width: 20px !important;
    padding: 0 !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.ip-idea-edit-input {
    width: 100%;
}

/* ── Inline edit confirm/cancel buttons (small 24x24) ────────── */ 
.ip-edit-confirm {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    padding: 0 !important;
    border-radius: var(--ct-radius-sm) !important;
}

.ip-edit-cancel {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    padding: 0 !important;
    border-radius: var(--ct-radius-sm) !important;
}

.ip-idea-edit-actions {
    display: flex;
    gap: 4px;
    justify-content: flex-end;
    margin-top: 6px;
    margin-bottom: 6px;
}

.ip-cluster-edit-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.ip-idea-edit-actions {
    display: flex;
    gap: 4px;
    justify-content: flex-end;
}

/* ── Inline edit confirm/cancel buttons (small 24x24) ────────── */ 
.ip-edit-confirm, .ip-edit-confirm .k-button, .ip-edit-cancel, .ip-edit-cancel .k-button {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    max-width: 24px !important;
    padding: 0 !important;
    border-radius: var(--ct-radius-sm) !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

    .ip-edit-confirm .btn-icon, .ip-edit-cancel .btn-icon {
        width: 24px !important;
        height: 24px !important;
    }

/* ── Drop placeholder ────────────────────────────────────────── */ 
.ip-drop-placeholder {
    color: var(--ct-text-muted);
    text-align: center;
    padding: 20px;
    border: 1.5px dashed var(--ct-border);
    border-radius: var(--ct-radius-sm);
    font-style: italic;
}

/* ── Empty state ─────────────────────────────────────────────── */ 
.ip-empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--ct-text-muted);
}

.ip-empty-title {
    color: var(--ct-text-muted);
    margin-bottom: 4px;
}

.ip-empty-subtitle {
    color: var(--ct-text-muted);
}

/* ============================================================
   FORGING PATHWAYS PAGE
   ============================================================ */ 
.fpath-content-wrapper {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 0px 48px;
}

/* ── Three-column layout ─────────────────────────────────────── */ 
.fpath-columns {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.fpath-column {
    background: var(--ct-surface);
    border: 1px solid var(--ct-border);
    border-radius: var(--ct-radius);
    padding: 20px;
    box-shadow: var(--ct-shadow-card);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: border-color.2s, background.2s;
}

    .fpath-column.fpath-drop-active {
        border-color: var(--ct-brand-purple);
        background: rgba(94, 10, 255, 0.03);
    }

/* ── Column header ───────────────────────────────────────────── */
.fpath-column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--ct-border);
    padding-bottom: 12px;
    background: #FEFBFF;
    margin: -20px -20px 0px;
    padding: 12px 24px;
    border-radius: var(--ct-radius) var(--ct-radius) 0 0;
}

.fpath-column-title {
    color: var(--ct-brand-purple);
    font-weight: 600;
    margin: 0;
}

/* ── Create an action button ─────────────────────────────────── */ 
.fpath-create-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 16px;
    border: 1.5px dashed var(--ct-border);
    border-radius: var(--ct-radius-sm);
    cursor: pointer;
    color: var(--ct-text-muted);
    transition: border-color.15s, color.15s;
}

    .fpath-create-action:hover {
        border-color: var(--ct-brand-purple);
        color: var(--ct-brand-purple);
    }

.fpath-create-icon {
    font-size: 1.1rem;
}

/* ── Action card ─────────────────────────────────────────────── */
.fpath-action-card {
    background: #FEFBFF;
    border: 1px solid var(--ct-border);
    border-radius: var(--ct-radius-sm);
    padding: 12px 14px 0;
    display: flex;
    flex-direction: column;
}

.fpath-action-desc {
    color: var(--ct-text-primary);
    line-height: 1.5;
    margin-bottom: 8px;
}

.fpath-action-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}

.fpath-meta-row {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: .8rem;
    color: var(--ct-text-secondary);
}

.fpath-meta-icon {
    font-size: .75rem;
    flex-shrink: 0;
}

.fpath-meta-label {
    font-weight: 600;
    color: var(--ct-text-primary);
}

.fpath-action-divider {
    border-top: 1px solid var(--ct-border);
    margin-left: -14px;
    margin-right: -14px;
}

/* ── Action modal ────────────────────────────────────────────── */
.wg-modal.fpath-action-modal {
    width: min(560px, calc(100vw - 32px));
    max-width: 560px;
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    box-sizing: border-box;
    padding: 32px 24px 24px;
    display: flex;
    flex-direction: column;
}

    .wg-modal.fpath-action-modal h2 {
        margin: 0 32px 6px 0;
    }

.fpath-modal-horizon {
    color: var(--ct-brand-purple);
    margin: 0 0 20px;
}

.fpath-modal-field {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    width: 100%;
    margin: 0 0 18px;
    flex: 0 0 auto;
}

.fpath-modal-label {
    display: block;
    margin: 0;
    line-height: 1.35;
    flex: 0 0 auto;
}

.wg-modal.fpath-action-modal .k-textbox,
.wg-modal.fpath-action-modal .k-input,
.wg-modal.fpath-action-modal .k-textarea {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    flex: 0 0 auto;
}

    .wg-modal.fpath-action-modal .k-textarea textarea {
        width: 100% !important;
        min-height: 120px;
    }

.fpath-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 0;
    flex-wrap: nowrap;
}

    .fpath-modal-actions .k-button {
        min-width: 96px;
    }

/* Keep modal responsive, but don't stack buttons until truly narrow */
@media (max-width: 640px), (max-height: 760px) {
    .wg-modal.fpath-action-modal {
        width: calc(100vw - 24px);
        max-height: calc(100dvh - 24px);
        padding: 24px 20px 20px;
    }
}

@media (max-width: 480px) {
    .fpath-modal-actions {
        flex-wrap: wrap;
    }

        .fpath-modal-actions .k-button {
            width: 100%;
        }
}

.fpath-edit-btn.k-button,
.fpath-edit-btn .k-button {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    padding: 0 !important;
    background-color: #FEFBFF !important;
    border: 1px solid var(--ct-border) !important;
    box-shadow: none !important;
    flex: 0 0 38px !important;
}

/* ── Remove focus outline from dialog close button ───────────── */
.k-button.k-window-titlebar-action.k-dialog-titlebar-action.k-button-flat.k-icon-button::before, .k-button.k-window-titlebar-action.k-dialog-titlebar-action.k-button-flat.k-icon-button::after {
    display: none !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.k-dialog .k-dialog-content {
    text-align: center;
    padding: 0px 50px 16px;
}

.k-dialog .k-dialog-actions {
    padding: 0 50px 20px;
}

/* ============================================================
   REFLECTION & EXPORT PAGE
   ============================================================ */ 
.re-page {
    max-width: 100%;
    padding: 0;
    margin: 0;
}

/* ── Header bar (not exported) ───────────────────────────────── */
.re-header-bar {
    padding: 16px 40px 20px;
}

.re-header-inner {
    max-width: 1440px;
    margin: 0 auto;
}

.re-header-utility-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 12px;
}

    .re-header-utility-row .nns-back-link {
        margin-bottom: 0;
    }

.re-header-title {
    margin: 0;
}

.re-header-description {
    color: var(--ct-text-secondary);
    margin: 4px 0 0;
}

/* ── PDF content wrapper ─────────────────────────────────────── */
.re-pdf-content {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 0px 48px;
    overflow: hidden;
}

/* ── Cover page ──────────────────────────────────────────────── */
.re-cover-page {
    /*    display: none;
    background: #0A0A0A;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    min-height: 460px;
    aspect-ratio: 16 / 9;*/
    display: none;
    background: #0A0A0A;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    min-height: 460px;
    aspect-ratio: 16 / 9;
    max-width: 100%;
    margin-bottom: 24px;
}

.re-cover-inner {
    position: relative;
    z-index: 1;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    max-width: 50%;
}

.re-cover-logo {
    height: 32px;
    width: auto;
}

.re-cover-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.re-cover-title {
    color: #fff;
    font-size: 2rem;
    font-weight: 400;
    margin: 0 0 16px;
    line-height: 1.2;
}

.re-cover-name {
    color: rgba(255,255,255,.7);
    font-size: 1rem;
    margin: 0 0 8px;
}

.re-cover-date {
    color: rgba(255,255,255,.5);
    font-size: .9rem;
    margin: 0;
}

.re-cover-footer {
    display: flex;
    align-items: center;
    gap: 12px;
}

.re-cover-footer-logo {
    height: 24px;
    width: auto;
}

.re-cover-footer-ivey {
    height: 20px;
    width: auto;
}

.re-cover-art {
    /*    position: absolute;
    inset: 0;
    border-radius: 12px;
    overflow: hidden;*/
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 12px;
}

.re-cover-art-img {
    /*    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;*/
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
}


/* ── Page break for PDF ──────────────────────────────────────── */
/* Ensure all page breaks are hidden on screen */
.pdf-page-break {
    display: none;
    height: 0;
    overflow: hidden;
    page-break-before: always;
}

/* ── Content sections ────────────────────────────────────────── */
.re-content-pages {
    display: flex;
    flex-direction: column;
    gap: 24px;
    overflow: hidden;
}

.re-section {
    border: 1px solid var(--ct-border);
    border-radius: var(--ct-radius);
    overflow: hidden;
    box-shadow: var(--ct-shadow-card);
    background: var(--ct-surface);
    break-inside: avoid;
}

.re-section-purple, .re-section-gold {
    border-left: 1px solid var(--ct-border);
}

.re-section-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: #FEFBFF;
    border-bottom: 1px solid var(--ct-border);
    margin-bottom: 0;
}

.re-section-logo {
    height: 28px;
    width: auto;
}

.re-section-title {
    /*color: var(--ct-brand-purple-nn);*/
    /*font-weight: 600;*/
    /*margin: 0;
    padding: 14px 24px;
    background: #FEFBFF;
    border-bottom: 1px solid var(--ct-border);*/
    color: var(--ct-brand-purple-nn);
    /*font-weight: 600;*/
    margin: 0;
    padding: 14px 24px;
    background: #FEFBFF;
    border-bottom: 1px solid var(--ct-border);
}

.re-section-header-row .re-section-title {
    padding: 0;
    background: none;
    border-bottom: none;
    margin: 0;
    /*color: var(--ct-brand-purple-nn);*/
}

.re-section-body {
    color: var(--ct-text-primary);
    line-height: 1.6;
    margin: 0;
    padding: 16px 24px;
}

.re-subsection-title {
    color: var(--ct-brand-purple-dark);
    /*font-size: .875rem;*/
    font-weight: 500;
    margin: 0 0 8px;
}

/* ── Empty message ───────────────────────────────────────────── */
.re-empty-message {
    color: var(--ct-text-muted);
    text-align: center;
    padding: 32px 24px;
}

/* ── North & Near Star rows ──────────────────────────────────── */
.re-star-row {
    display: flex;
    align-items: flex-start;
    /*gap: 12px;*/
    /*margin: 0 24px 16px;*/
    padding-top: 16px;
}

    .re-star-row:first-of-type {
        padding-top: 16px;
        margin: 0 30px 16px;
        gap: 21px;
    }

    .re-star-row:last-child {
        margin-bottom: 16px;
        margin: 0 22px 16px;
        gap: 12px;
    }

.re-star-icon-sm {
    width: 41px;
    height: 41px;
    flex-shrink: 0;
    margin-top: 2px;
}

.re-star-icon-lg {
    width: 57px;
    height: 57px;
    flex-shrink: 0;
    margin-top: 2px;
}

.re-star-label {
    color: var(--ct-brand-purple-dark);
    /*font-size: 16px;*/
    font-weight: 500;
    margin-bottom: 2px;
}

.re-star-text {
    color: var(--ct-text-primary);
    line-height: 1.5;
}

/* ── Framing Problems layout ─────────────────────────────────── */
.re-fp-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 16px 24px;
}

.re-impact-category {
    margin-bottom: 12px;
}

.re-impact-label {
    font-weight: 600;
    color: var(--ct-text-primary);
    margin-bottom: 6px;
}

.re-impact-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* ── Exploring Patterns ──────────────────────────────────────── */ 
/*.re-diagram-container {*/
/*    border: 1px solid var(--ct-border);
    border-radius: var(--ct-radius-sm);*/
    /*overflow: hidden;
    min-height: 400px;
}*/

/* ── Imagining Possibilities ─────────────────────────────────── */
.re-ip-cluster {
    margin: 0 24px 16px;
    padding-top: 16px;
}

.re-ep-content {
    padding: 16px 24px;
}

.re-cluster-name {
    color: var(--ct-brand-purple);
    font-weight: 600;
    margin: 0 0 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--ct-border);
}

.re-ip-ideas-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}

.re-ip-idea-card {
    background: #E2DDE5;
    border: 1px solid var(--ct-border);
    border-radius: var(--ct-radius-sm);
    padding: 10px 12px;
    color: var(--ct-text-primary);
    line-height: 1.4;
}

/* ── Forging Pathways ────────────────────────────────────────── */
.re-fpath-columns {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    padding: 16px 24px;
}

.re-ip-cluster:first-child {
    padding-top: 16px;
}

.re-ip-cluster:last-child {
    margin-bottom: 16px;
}

.re-fpath-column {
    min-width: 0;
}

.re-fpath-column-title {
    color: var(--ct-brand-purple);
    font-weight: 600;
    font-style: italic;
    margin: 0 0 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--ct-border);
}

.re-fpath-action-card {
    background: var(--ct-surface);
    border: 1px solid var(--ct-border);
    border-radius: var(--ct-radius-sm);
    padding: 10px 12px;
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* ── Override Chrome autofill background ─────────────────────── */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    -webkit-text-fill-color: var(--ct-text-primary) !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* ================================================================
   Profile dropdown menu  (TelerikMenu inside .app-header)
   ================================================================ */

/* Strip all default Telerik horizontal-menu chrome so the root item
   looks exactly like the original .app-header-user button.           */
.app-profile-menu.k-menu-horizontal {
    background: transparent;
    border: none;
    padding: 0;
}

.app-profile-menu.k-menu-horizontal > .k-item {
    background: transparent;
    border: none;
    padding: 0;
}

/* The Kendo link wrapper around the root ItemTemplate */
.app-profile-menu.k-menu-horizontal > .k-item > .k-link {
    padding: 0;
    background: transparent !important;
    box-shadow: none;
}

/* Hover / open state — delegate entirely to .app-header-user */
.app-profile-menu.k-menu-horizontal > .k-item > .k-link:hover,
.app-profile-menu.k-menu-horizontal > .k-item.k-hover > .k-link,
.app-profile-menu.k-menu-horizontal > .k-item.k-focus  > .k-link {
    background: transparent !important;
    color: inherit;
}

/* Rotate chevron while the popup is open */
.app-profile-menu.k-menu-horizontal > .k-item.k-hover .app-header-chevron {
    display: inline-block;
    transform: rotate(180deg);
}

/* ── Dropdown popup panel ───────────────────────────────────────── */

/* Remove extra padding Telerik puts on the <li> link inside the popup */
.k-menu-popup .k-item > .k-link {
    padding: 0;
}

/* Individual dropdown rows */
.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    min-width: 160px;
    font-size: var(--kendo-font-size-md, 14px);
    color: var(--ct-text-body, #2c2c2c);
    white-space: nowrap;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.profile-menu-item:hover {
    background: rgba(0, 0, 0, .05);
    color: var(--ct-brand-primary, #1a4f8a);
}

/* Log Out row — red tint on hover */
.profile-menu-item--logout:hover {
    color: #c0392b !important;
    background: rgba(192, 57, 43, .06) !important;
}

/* Align the svg icon neatly */
.profile-menu-item .k-svg-icon {
    flex-shrink: 0;
    opacity: .7;
}

/* Project title turns purple + underlined when hovering the card,
   but NOT when the hover is on the edit/delete action buttons. */
/*.project-card-item:hover:not(:has(.project-card-actions:hover)) .project-card-title {
    color: var(--ct-brand-purple);
    text-decoration: underline;
}*/

/* Smooth the color change */
.project-card-title {
    transition: color .15s ease;
}

.projects-heading {
    margin: 0 0 4px; /* was 0 0 24px — tighten the gap to the link */
}

.projects-watch-video {
    display: inline-block;
    margin: 0 0 24px; /* preserves the original space below before the list */
}

.page-header-shell {
    background: var(--ct-bg);
    padding: 24px 40px 20px;
    margin-bottom: 24px;
}

.page-header-shell-inner {
    max-width: 1440px;
    margin: 0 auto;
}

.page-header-utility-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 16px;
}

    .page-header-utility-row .nns-back-link {
        margin-bottom: 0;
    }

    .page-header-utility-row .nns-header-actions {
        display: flex;
        align-items: center;
        gap: 10px;
        padding-top: 0;
    }

.page-header-panel {
    background: rgba(29, 27, 32, 0.08);
    padding: 24px 28px;
    border-radius: var(--ct-radius);
}

    .page-header-panel .nns-header {
        gap: 24px;
    }

    .page-header-panel .nns-header-actions {
        display: none;
    }

    .page-header-panel .nns-description {
        margin-bottom: 8px;
    }

.page-header-tip-row {
    margin-top: 16px;
}

    .page-header-tip-row .tip-carousel,
    .page-header-tip-row .tip-carousel-shell,
    .page-header-tip-row .tip-carousel-root {
        margin-bottom: 0;
    }

    .unsaved-dialog-btn.k-button:hover,
    .unsaved-dialog-btn.k-button:focus-visible {
        background: var(--ct-brand-purple) !important;
        border-color: var(--ct-brand-purple) !important;
        color: #fff !important;
    }

.page-bottom-actions {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--ct-border);
}

.page-bottom-actions-inner {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.ep-image-preview {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 8px;
    box-sizing: border-box;
}

    .ep-image-preview img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain; /* preserves aspect ratio inside the card */
        display: block;
    }


.re-diagram-container {
    width: calc(100% + 48px);
    margin: 0 -24px;
    max-height: 750px; /* was 600 */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.re-systems-map-img {
    display: block;
    width: 100%;
    max-height: 750px; /* was 600 */
    height: auto;
    object-fit: contain;
}

/* Make sure the image renders in the PDF at good resolution and
   doesn't get split across pages. */
@media print {
    .re-systems-map-img {
        max-height: none;
        page-break-inside: avoid;
        break-inside: avoid;
    }

    .re-diagram-container {
        page-break-inside: avoid;
        break-inside: avoid;
    }
}

/*.ep-map-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}*/

.ep-map-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ep-remove-image-btn {
    flex-shrink: 0;
}

/* Hides the "Drag and drop files here" text string */
.ep-file-select .k-dropzone-hint {
    display: none !important;
}

/* Systems Map file picker — strip Telerik's container border/background */
.ep-file-select.k-upload,
.ep-file-select .k-upload,
.ep-file-select .k-dropzone {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
}

/* Optional: tighten the space around the "Click to Select File" button */
.ep-file-select .k-upload-button {
    margin: 0;
}

.ep-file-select .k-upload-files,
.ep-file-select .k-file-list {
    display: none !important;
}

.ep-file-select {
    display: flex !important;
    justify-content: center;
    margin-bottom: 16px; /* keep the gap you already had */
}

/* Empty state — let the card shrink to fit its contents */
.ep-map-card:not(:has(.ep-diagram-wrapper)) {
    min-height: 0;
}

/* Make the FileSelect dropzone a proper drop target */
.ep-file-select .k-dropzone,
.ep-file-select .k-upload {
    min-height: 180px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 24px !important;
    border: 2px dashed var(--ct-border) !important;
    border-radius: var(--ct-radius) !important;
    background: #fafafa !important;
    transition: border-color .15s ease, background .15s ease;
}

    .ep-file-select .k-dropzone:hover,
    .ep-file-select .k-upload:hover {
        border-color: var(--ct-brand-purple) !important;
        background: #f5f0ff !important;
    }

/* Compact dropzone once an image is present */
.ep-map-card:has(.ep-diagram-wrapper) .ep-file-select .k-dropzone,
.ep-map-card:has(.ep-diagram-wrapper) .ep-file-select .k-upload {
    min-height: 0;
    padding: 12px !important;
}

.ep-map-footer-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

/* ── Forging Pathways cluster dropdown in action modal ───────── */
.fpath-action-modal .fpath-cluster-dropdown.k-dropdownlist {
    width: 100% !important;
    background: #ffffff !important;
    border: 1px solid var(--ct-border-input) !important;
    border-bottom: 1.5px solid var(--ct-border-input) !important;
    border-radius: var(--ct-radius-sm) var(--ct-radius-sm) 0 0 !important;
    box-shadow: none !important;
}

/* Inner selected text / placeholder text */
.fpath-action-modal .fpath-cluster-dropdown .k-input-inner,
.fpath-action-modal .fpath-cluster-dropdown .k-input-value-text {
    color: var(--ct-text-primary) !important;
    opacity: 1 !important;
}

/* Dropdown arrow button */
.fpath-action-modal .fpath-cluster-dropdown .k-input-button {
    background: transparent !important;
    border: none !important;
    color: var(--ct-text-secondary) !important;
}

/* Focus state to match your other inputs */
.fpath-action-modal .fpath-cluster-dropdown.k-focus,
.fpath-action-modal .fpath-cluster-dropdown:focus-within {
    border: 1px solid var(--ct-brand-purple-light) !important;
    border-bottom: 3px solid var(--ct-brand-purple-focus) !important;
    border-radius: var(--ct-radius-sm) !important;
    box-shadow: none !important;
}

/* Popup container */
.k-animation-container .k-list-container,
.k-animation-container .k-popup,
.k-popup .k-list-container {
    border-radius: var(--ct-radius-sm) !important;
    box-shadow: 0 8px 22px rgba(0,0,0,.10) !important;
}

/* Option text in the opened dropdown */
.k-list-container .k-list-item,
.k-list-container .k-list-optionlabel {
    color: var(--ct-text-primary) !important;
    opacity: 1 !important;
}

/* Make real options a bit more obvious */
.k-list-container .k-list-item {
    font-weight: 400;
}

    /* Hovered option */
    .k-list-container .k-list-item:hover,
    .k-list-container .k-hover {
        background: rgba(94, 10, 255, 0.08) !important;
        color: var(--ct-text-primary) !important;
    }

/* Selected option */
.k-list-container .k-selected {
    background: rgba(94, 10, 255, 0.14) !important;
    color: var(--ct-text-primary) !important;
}

.page-header-panel {
    position: relative;
}

.fpath-header-panel-info {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 2;
}

.projects-video-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0 0 24px;
}

    .projects-video-links .projects-watch-video {
        display: inline-block;
        margin: 0;
    }

.sense-video-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0 0 0;
}

    .sense-video-links .sense-watch-video {
        display: inline-block;
        margin: 0;
    }

