html,
body {
    background: #eeeaf6;
    overflow-x: clip;
    max-width: 100%;
}

html[data-theme="dark"],
html[data-theme="dark"] body {
    background: #0c0814;
}

html[data-theme="light"],
html[data-theme="light"] body {
    background: #eeeaf6;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

.jt-app.mud-layout {
    --mud-appbar-height: 0px;
    background: var(--mud-palette-background) !important;
    min-height: 100vh;
    min-width: 0;
    max-width: 100%;
}

.jt-mobile-bar {
    display: none !important;
}

.jt-app .jt-drawer {
    top: 0;
    height: 100%;
    border: 0;
    background: transparent !important;
}

.jt-app .jt-drawer .mud-drawer-content {
    height: auto;
    min-height: 100%;
    max-height: none;
    background: transparent;
}

html[data-theme="dark"] .jt-app .jt-drawer .mud-drawer-content {
    background: linear-gradient(180deg, #140c1e 0%, #0c0814 100%);
    border-right: 1px solid #2a1d44;
}

html[data-theme="dark"] .jt-app .mud-main-content.jt-main {
    background:
        radial-gradient(1100px 420px at 12% -10%, rgba(124, 58, 237, 0.14), transparent 58%),
        radial-gradient(820px 360px at 100% 0%, rgba(59, 130, 246, 0.07), transparent 52%),
        #0b0d17;
}

.jt-drawer-inner {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    height: auto;
    padding: 12px 12px 16px;
}

.jt-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-shrink: 0;
    min-height: auto !important;
    overflow: visible;
    padding: 12px 8px 20px !important;
}

.jt-brand-link {
    display: flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

.jt-brand-name {
    font-family: Outfit, Inter, sans-serif;
    font-size: 1.05rem;
    font-weight: 400;
    letter-spacing: -0.03em;
}

.jt-nav-menu {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    gap: 4px;
}

.jt-app .jt-nav-menu .mud-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 0 12px;
    min-height: 40px;
    border-radius: 12px;
    font-family: Inter, Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: 0;
}

.jt-app .jt-nav-menu .mud-nav-link .mud-nav-link-text {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

.jt-app .jt-nav-menu .mud-nav-link .mud-nav-link-icon,
.jt-app .jt-nav-menu .mud-nav-link .mud-icon-root {
    width: 1.2rem;
    height: 1.2rem;
    font-size: 1.2rem;
    margin-inline-end: 0 !important;
}

.jt-app .jt-nav-menu .mud-nav-link.active {
    background: color-mix(in srgb, var(--mud-palette-primary) 16%, transparent) !important;
    color: var(--mud-palette-text-primary) !important;
    font-weight: 600;
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--mud-palette-primary) 28%, transparent);
}

html[data-theme="dark"] .jt-app .jt-nav-menu .mud-nav-link.active,
.jt-app.mud-palette-dark .jt-nav-menu .mud-nav-link.active {
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.42), rgba(91, 33, 182, 0.18)) !important;
    color: #f5f3ff !important;
    box-shadow: 0 0 22px rgba(139, 92, 246, 0.28);
}

.jt-drawer-foot {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    gap: 8px;
    margin-top: auto;
    padding-top: 16px;
    padding-bottom: 24px;
}

.jt-drawer-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 8px;
    margin: 4px 0 0;
    border-radius: 14px;
    color: inherit;
    text-decoration: none;
}

.jt-drawer-user:hover,
.jt-drawer-user.is-on {
    background: rgba(255, 255, 255, 0.72);
}

html[data-theme="dark"] .jt-drawer-user:hover,
html[data-theme="dark"] .jt-drawer-user.is-on {
    background: var(--mud-palette-surface);
}

.jt-drawer-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 4px 8px;
}

.jt-drawer-logout {
    align-self: auto;
    margin: 0;
}

.jt-drawer-inner .mode-switch-app {
    margin: 0;
    align-self: auto;
}

.jt-avatar {
    width: 36px;
    height: 36px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #ddd6fe;
    color: #5b21b6;
    font-size: 0.85rem;
    font-weight: 700;
}

.jt-drawer-user-meta {
    min-width: 0;
    flex: 1;
}

.jt-drawer-user-meta strong,
.jt-drawer-user-meta span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.jt-drawer-user-meta strong {
    font-size: 0.82rem;
}

.jt-drawer-user-meta span {
    color: var(--mud-palette-text-secondary);
    font-size: 0.72rem;
}

.jt-create {
    border-radius: 999px !important;
    padding: 0 16px !important;
    text-transform: none !important;
}

/* Flat-ish primary CTAs — tiny depth so they still read as buttons */
:is(.jt-app, .mud-overlay, .mud-dialog) .mud-button-filled-primary,
:is(.jt-app, .mud-overlay, .mud-dialog) .mud-button-filled.mud-button-filled-primary {
    --jt-btn-fg: #f8fafc;
    --jt-btn-bg: #7c3aed;
    --jt-btn-bg-hover: #8b5cf6;
    --jt-btn-bg-active: #6d28d9;
    --jt-btn-edge: rgba(255, 255, 255, 0.14);
    --jt-btn-shade: rgba(76, 29, 149, 0.28);
    border-radius: 10px !important;
    text-transform: none !important;
    font-family: Outfit, Inter, sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: -0.015em !important;
    color: var(--jt-btn-fg) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background:
        linear-gradient(180deg, var(--jt-btn-edge), transparent 38%),
        var(--jt-btn-bg) !important;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.12) inset,
        0 1px 2px var(--jt-btn-shade) !important;
    transition: background-color 140ms ease, box-shadow 140ms ease, border-color 140ms ease !important;
}

html[data-theme="light"] :is(.jt-app, .mud-overlay, .mud-dialog) .mud-button-filled-primary,
html[data-theme="light"] :is(.jt-app, .mud-overlay, .mud-dialog) .mud-button-filled.mud-button-filled-primary {
    --jt-btn-fg: #ffffff;
    --jt-btn-bg: #7c3aed;
    --jt-btn-bg-hover: #6d28d9;
    --jt-btn-bg-active: #5b21b6;
    --jt-btn-edge: rgba(255, 255, 255, 0.22);
    --jt-btn-shade: rgba(76, 29, 149, 0.18);
    border-color: rgba(91, 33, 182, 0.2) !important;
}

:is(.jt-app, .mud-overlay, .mud-dialog) .mud-button-filled-primary:hover:not(:disabled),
:is(.jt-app, .mud-overlay, .mud-dialog) .mud-button-filled.mud-button-filled-primary:hover:not(:disabled),
:is(.jt-app, .mud-overlay, .mud-dialog) .mud-button-filled-primary:focus-visible:not(:disabled),
:is(.jt-app, .mud-overlay, .mud-dialog) .mud-button-filled.mud-button-filled-primary:focus-visible:not(:disabled) {
    background:
        linear-gradient(180deg, var(--jt-btn-edge), transparent 38%),
        var(--jt-btn-bg-hover) !important;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.16) inset,
        0 2px 6px var(--jt-btn-shade) !important;
    filter: none !important;
    transform: none !important;
}

:is(.jt-app, .mud-overlay, .mud-dialog) .mud-button-filled-primary:active:not(:disabled),
:is(.jt-app, .mud-overlay, .mud-dialog) .mud-button-filled.mud-button-filled-primary:active:not(:disabled) {
    background:
        linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.08) 60%),
        var(--jt-btn-bg-active) !important;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.18) inset,
        0 1px 1px var(--jt-btn-shade) !important;
    filter: none !important;
    transform: none !important;
}

:is(.jt-app, .mud-overlay, .mud-dialog) .mud-button-filled-primary:disabled,
:is(.jt-app, .mud-overlay, .mud-dialog) .mud-button-filled.mud-button-filled-primary:disabled,
:is(.jt-app, .mud-overlay, .mud-dialog) .mud-button-filled-primary.mud-disabled,
:is(.jt-app, .mud-overlay, .mud-dialog) .mud-button-filled.mud-button-filled-primary.mud-disabled {
    opacity: 0.45;
    filter: none !important;
    transform: none !important;
    box-shadow: none !important;
}

:is(.jt-app, .mud-overlay, .mud-dialog) .jt-create.mud-button-filled-primary,
:is(.jt-app, .mud-overlay, .mud-dialog) .jt-apps-add.mud-button-filled-primary,
:is(.jt-app, .mud-overlay, .mud-dialog) .mud-button-filled-primary.mud-button-filled-size-small {
    border-radius: 999px !important;
    padding-inline: 16px !important;
}

:is(.jt-app, .mud-overlay, .mud-dialog) .mud-button-outlined-primary,
:is(.jt-app, .mud-overlay, .mud-dialog) .mud-button-outlined.mud-button-outlined-primary {
    border-radius: 10px !important;
    text-transform: none !important;
    font-family: Outfit, Inter, sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: -0.015em !important;
    border: 1px solid rgba(167, 139, 250, 0.45) !important;
    color: #e9d5ff !important;
    background: transparent !important;
    box-shadow: none !important;
}

html[data-theme="light"] :is(.jt-app, .mud-overlay, .mud-dialog) .mud-button-outlined-primary,
html[data-theme="light"] :is(.jt-app, .mud-overlay, .mud-dialog) .mud-button-outlined.mud-button-outlined-primary {
    border-color: rgba(124, 58, 237, 0.35) !important;
    color: #6d28d9 !important;
    background: transparent !important;
}

:is(.jt-app, .mud-overlay, .mud-dialog) .mud-button-outlined-primary:hover:not(:disabled),
:is(.jt-app, .mud-overlay, .mud-dialog) .mud-button-outlined.mud-button-outlined-primary:hover:not(:disabled) {
    border-color: rgba(196, 181, 253, 0.75) !important;
    background: rgba(124, 58, 237, 0.14) !important;
}

html[data-theme="light"] :is(.jt-app, .mud-overlay, .mud-dialog) .mud-button-outlined-primary:hover:not(:disabled),
html[data-theme="light"] :is(.jt-app, .mud-overlay, .mud-dialog) .mud-button-outlined.mud-button-outlined-primary:hover:not(:disabled) {
    border-color: rgba(109, 40, 217, 0.5) !important;
    background: rgba(237, 233, 254, 0.85) !important;
}

/* Segment / toggle CTAs stay compact */
.jt-app .jt-network-segments .mud-button-filled-primary,
.jt-app .jt-applications-view .mud-button-filled-primary,
.jt-app .jt-cawi-filter .mud-button-filled-primary {
    border-radius: 999px !important;
    box-shadow: none !important;
    transform: none !important;
    filter: none !important;
    border: 0 !important;
}

.jt-app .mud-main-content.jt-main {
    display: flex;
    flex-direction: column;
    background: var(--mud-palette-surface);
    border-radius: 24px;
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
    min-height: calc(100vh - 24px);
    margin-top: 12px;
    margin-right: 12px;
    margin-bottom: 12px;
    margin-left: calc(var(--mud-drawer-width-left, 248px) + 8px) !important;
    padding: 28px 32px 24px !important;
}

.jt-app-auth .mud-main-content.jt-main,
.jt-app-auth .mud-main-content.jt-main-auth {
    display: block;
    background: transparent !important;
    border-radius: 0;
    min-height: 100vh;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
}

.jt-page {
    min-width: 0;
    max-width: min(1120px, 100%);
}

.jt-page-fill {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    max-width: none;
    width: 100%;
    min-height: 0;
}

.jt-profile > .mud-grid {
    flex: 0 0 auto;
    min-height: 0;
}

.jt-profile > .mud-grid > .mud-grid-item:not(:last-child) {
    display: block;
}

.jt-profile > .mud-grid > .mud-grid-item:not(:last-child) > .jt-card {
    flex: none;
    width: 100%;
}

.jt-profile > .jt-page-header {
    margin-bottom: 16px;
}

.jt-profile .jt-page-lead {
    margin-top: 4px;
}

.jt-profile .jt-experience-summary textarea {
    transition: min-height 180ms ease;
}

.jt-profile .jt-experience-summary:focus-within textarea {
    min-height: 240px;
}

.jt-profile .skill-card {
    flex: none;
}

.jt-home {
    gap: 0;
}

.jt-home-body {
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    min-height: 0;
    align-items: start;
    align-content: start;
}

.jt-home-matches {
    display: flex;
    flex-direction: column;
    min-height: 280px;
    margin: 0;
}

.jt-matches-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 14px;
}

.jt-matches-head .mud-typography-h6 {
    margin: 0;
    font-family: Outfit, Inter, sans-serif;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.jt-matches-lead {
    margin: 6px 0 0;
    max-width: 46rem;
    color: var(--mud-palette-text-secondary);
    font-size: 0.88rem;
    line-height: 1.45;
}

.jt-home-matches-card {
    min-height: 0;
}

.jt-home-matches .jt-match-chart {
    flex: 1 1 auto;
    min-height: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
}

.jt-home-boards {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: visible;
}

.jt-home-boards .job-board-grid,
.jt-home-boards .mud-grid-item {
    overflow: visible;
    height: auto;
    align-self: start;
}

.jt-home-boards .job-board-grid {
    flex: none;
    align-content: start;
    align-items: start;
}

.jt-home-boards .job-board-app,
.jt-home-boards .job-board-link,
.jt-home-boards .add-board-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: auto;
    color: inherit;
    text-decoration: none;
}

.jt-home-boards .add-board-button {
    padding: 0;
    border: none;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.jt-home-boards .job-board-name {
    margin-top: 8px !important;
    text-align: center;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.jt-home-boards .jt-boards-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 18px;
}

.jt-home-boards .jt-boards-head .mud-typography-h6 {
    margin: 0;
    font-family: Outfit, Inter, sans-serif;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.jt-home-boards .jt-boards-lead {
    margin: 4px 0 0;
    color: var(--mud-palette-text-secondary);
    font-size: 0.88rem;
    line-height: 1.4;
}

.jt-home-boards .job-board-icon {
    box-sizing: border-box;
    width: 76px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 16px;
    cursor: pointer;
    box-shadow: 0 1px 0 rgba(17, 24, 39, 0.04);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease,
        background-color 0.18s ease;
}

.jt-home-boards .job-board-link:hover .job-board-icon,
.jt-home-boards .add-board-button:hover .job-board-icon {
    transform: translateY(-3px);
    border-color: rgba(124, 58, 237, 0.28);
    box-shadow: 0 12px 28px rgba(76, 29, 149, 0.14);
}

.jt-home-boards .job-board-link:focus-visible,
.jt-home-boards .add-board-button:focus-visible {
    outline: none;
}

.jt-home-boards .job-board-link:focus-visible .job-board-icon,
.jt-home-boards .add-board-button:focus-visible .job-board-icon {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.28);
}

html[data-theme="dark"] .jt-home-boards .job-board-icon {
    box-shadow: none;
}

html[data-theme="dark"] .jt-home-boards .job-board-link:hover .job-board-icon,
html[data-theme="dark"] .jt-home-boards .add-board-button:hover .job-board-icon {
    box-shadow: 0 12px 28px rgba(12, 8, 20, 0.45);
}

html[data-theme="dark"] .jt-home-boards .add-board-icon {
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(167, 139, 250, 0.4);
}

.jt-home-boards .add-board-icon {
    border: 1.5px dashed rgba(124, 58, 237, 0.35);
    background: rgba(139, 92, 246, 0.06);
    color: var(--mud-palette-primary);
}

.jt-home-boards .add-board-button:hover .add-board-icon {
    border-color: var(--mud-palette-primary);
    background: rgba(139, 92, 246, 0.12);
}

.jt-home-boards .job-board-image,
.jt-home-boards .job-board-letter {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
}

.jt-home-boards .job-board-image {
    display: block;
    object-fit: contain;
    object-position: center;
    image-rendering: auto;
}

.jt-home-boards .job-board-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
    color: #fff;
    font-family: Outfit, Inter, sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    user-select: none;
}

.jt-home-boards .job-board-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2px;
    margin-top: 2px;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.jt-home-boards .job-board-app:hover .job-board-actions,
.jt-home-boards .job-board-app:focus-within .job-board-actions {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .jt-home-boards .job-board-icon,
    .jt-home-boards .job-board-actions {
        transition: none;
    }

    .jt-home-boards .job-board-link:hover .job-board-icon,
    .jt-home-boards .add-board-button:hover .job-board-icon {
        transform: none;
    }
}

@media (max-width: 600px) {
    .jt-home-boards .job-board-icon {
        width: 70px;
        height: 70px;
    }
}

@media (min-width: 1100px) {
    .jt-home-body {
        grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.2fr);
    }
}

.jt-page-fill .jt-table-wrap {
    flex: 1 1 auto;
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

.jt-page-fill .application-table-wrapper,
.jt-page-fill .mud-table,
.jt-page-fill .mud-paper {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
}

.jt-page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.jt-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    overflow: visible;
}

.jt-page-kicker {
    margin: 0 0 6px;
    color: var(--mud-palette-text-secondary);
    font-size: 0.8rem;
}

.jt-page-title {
    margin: 0;
    font-family: Outfit, Inter, sans-serif;
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    overflow-wrap: anywhere;
}

.jt-page-lead {
    max-width: 36rem;
    margin: 6px 0 0;
    color: var(--mud-palette-text-secondary);
    font-size: 0.95rem;
    overflow-wrap: anywhere;
}

.jt-card {
    padding: 18px 20px;
    border-radius: 20px;
    background: var(--mud-palette-background);
}

.jt-stage-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
    gap: 12px;
    margin-bottom: 22px;
    overflow: visible;
}

.jt-stage {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-height: 108px;
    padding: 16px;
    border: 1px solid transparent;
    border-radius: 20px;
    background: var(--mud-palette-background);
    color: inherit;
    text-align: left;
    font: inherit;
}

button.jt-stage {
    cursor: pointer;
    border-color: rgba(17, 24, 39, 0.06);
    box-shadow: 0 1px 0 rgba(17, 24, 39, 0.04);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease,
        background-color 0.18s ease;
}

button.jt-stage:hover {
    transform: translateY(-3px);
    border-color: rgba(124, 58, 237, 0.22);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

button.jt-stage:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

button.jt-stage:focus-visible {
    outline: 2px solid #7c3aed;
    outline-offset: 3px;
}

html[data-theme="dark"] .jt-stage,
html[data-theme="dark"] button.jt-stage {
    background: #221a33;
    border-color: #4a3d68;
    color: #ede9fe;
    box-shadow: none;
}

html[data-theme="dark"] .jt-stage span,
html[data-theme="dark"] .jt-stage strong {
    color: #ede9fe;
}

html[data-theme="dark"] .jt-stage span {
    color: #c4b5fd;
}

html[data-theme="dark"] button.jt-stage:hover {
    background: #2a2140;
    border-color: rgba(167, 139, 250, 0.55);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

.jt-stage.is-on {
    outline: 2px solid transparent;
}

.jt-stage.status-saved.is-on {
    background: rgba(254, 252, 232, 0.92) !important;
    outline-color: rgba(202, 138, 4, 0.35);
}

.jt-stage.status-saved.is-on span,
.jt-stage.status-saved.is-on strong {
    color: #a16207 !important;
}

.jt-stage.status-applied.is-on {
    background: rgba(239, 246, 255, 0.92) !important;
    outline-color: rgba(37, 99, 235, 0.35);
}

.jt-stage.status-applied.is-on span,
.jt-stage.status-applied.is-on strong {
    color: #2563eb !important;
}

.jt-stage.status-interview.is-on {
    background: rgba(250, 245, 255, 0.92) !important;
    outline-color: rgba(124, 58, 237, 0.4);
}

.jt-stage.status-interview.is-on span,
.jt-stage.status-interview.is-on strong {
    color: #7c3aed !important;
}

.jt-stage.status-offer.is-on {
    background: rgba(240, 253, 250, 0.92) !important;
    outline-color: rgba(5, 150, 105, 0.35);
}

.jt-stage.status-offer.is-on span,
.jt-stage.status-offer.is-on strong {
    color: #059669 !important;
}

.jt-stage.status-rejected.is-on {
    background: rgba(255, 247, 247, 0.92) !important;
    outline-color: rgba(220, 38, 38, 0.35);
}

.jt-stage.status-rejected.is-on span,
.jt-stage.status-rejected.is-on strong {
    color: #dc2626 !important;
}

.jt-stage.status-withdrawn.is-on {
    background: rgba(248, 250, 252, 0.96) !important;
    outline-color: rgba(71, 85, 105, 0.35);
}

.jt-stage.status-withdrawn.is-on span,
.jt-stage.status-withdrawn.is-on strong {
    color: #475569 !important;
}

html[data-theme="dark"] .jt-stage.status-saved.is-on {
    background: rgba(250, 204, 21, 0.28) !important;
}

html[data-theme="dark"] .jt-stage.status-applied.is-on {
    background: rgba(96, 165, 250, 0.28) !important;
}

html[data-theme="dark"] .jt-stage.status-interview.is-on {
    background: rgba(167, 139, 250, 0.32) !important;
}

html[data-theme="dark"] .jt-stage.status-offer.is-on {
    background: rgba(52, 211, 153, 0.28) !important;
}

html[data-theme="dark"] .jt-stage.status-rejected.is-on {
    background: rgba(248, 113, 113, 0.28) !important;
}

html[data-theme="dark"] .jt-stage.status-withdrawn.is-on {
    background: rgba(203, 213, 225, 0.22) !important;
}

html[data-theme="dark"] .jt-stage.status-saved.is-on span,
html[data-theme="dark"] .jt-stage.status-saved.is-on strong {
    color: #fde68a !important;
}

html[data-theme="dark"] .jt-stage.status-applied.is-on span,
html[data-theme="dark"] .jt-stage.status-applied.is-on strong {
    color: #93c5fd !important;
}

html[data-theme="dark"] .jt-stage.status-interview.is-on span,
html[data-theme="dark"] .jt-stage.status-interview.is-on strong {
    color: #ddd6fe !important;
}

html[data-theme="dark"] .jt-stage.status-offer.is-on span,
html[data-theme="dark"] .jt-stage.status-offer.is-on strong {
    color: #6ee7b7 !important;
}

html[data-theme="dark"] .jt-stage.status-rejected.is-on span,
html[data-theme="dark"] .jt-stage.status-rejected.is-on strong {
    color: #fecaca !important;
}

html[data-theme="dark"] .jt-stage.status-withdrawn.is-on span,
html[data-theme="dark"] .jt-stage.status-withdrawn.is-on strong {
    color: #e2e8f0 !important;
}

.jt-stage span {
    color: var(--mud-palette-text-secondary);
    font-size: 0.78rem;
    font-weight: 600;
}

.jt-stage strong {
    font-family: Outfit, Inter, sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
}

.jt-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.jt-chip-row .mud-chip {
    max-width: 100%;
    height: auto !important;
    white-space: normal;
}

.jt-match-chart {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 28px;
}

.jt-score-ring {
    position: relative;
    width: 220px;
    height: 220px;
    flex: none;
    margin-inline: auto;
   
}

.jt-score-ring-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    overflow: visible;
}

.jt-score-ring-track {
    stroke: rgba(17, 24, 39, 0.08);
    stroke-width: 6;
}

.jt-score-ring-progress {
    stroke-width: 14;
    stroke-linecap: round;
    filter: drop-shadow(0 0 10px rgba(124, 58, 237, 0.45));
}

.jt-score-ring-cap {
    fill: #fff;
    stroke: #7c3aed;
    stroke-width: 2.5;
    filter: drop-shadow(0 0 6px rgba(124, 58, 237, 0.55));
}

.jt-score-ring-label {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
}

.jt-score-ring-label strong {
    font-family: Outfit, Inter, sans-serif;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    color: var(--mud-palette-text-primary);
}

.jt-score-ring-label em {
    margin-top: 8px;
    font-style: normal;
    font-size: 0.92rem;
    font-weight: 600;
    color: #7c3aed;
}

.jt-score-ring-label span {
    margin-top: 2px;
    font-size: 0.78rem;
    color: var(--mud-palette-text-secondary);
}

.jt-score-breakdown {
    flex: 1 1 auto;
    align-self: stretch;
    width: 100%;
    min-width: 0;
    min-height: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    padding: 16px 18px;
    border-radius: 18px;
    background: var(--mud-palette-surface);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.jt-score-breakdown-title {
    margin: 0 0 14px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--mud-palette-text-primary);
}

.jt-home-matches,
.jt-home-matches-card,
.jt-home-matches .jt-match-chart,
.jt-score-breakdown {
    min-height: auto;
    overflow: visible;
}

.jt-score-breakdown ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
    flex: none;
    overflow: visible;
}

.jt-home.jt-page-fill {
    flex: 0 1 auto;
    min-height: auto;
}

.jt-score-breakdown li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: baseline;
    column-gap: 12px;
    row-gap: 8px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.jt-score-breakdown li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.jt-score-breakdown-meta {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
}

.jt-score-breakdown-meta strong,
.jt-score-breakdown-meta span {
    display: block;
    overflow-wrap: break-word;
}

.jt-score-breakdown-meta strong {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--mud-palette-text-primary);
}

.jt-score-breakdown-meta span {
    margin-top: 2px;
    font-size: 0.72rem;
    color: var(--mud-palette-text-secondary);
}

.jt-score-breakdown-bar {
    grid-column: 1 / -1;
    grid-row: 2;
    height: 6px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.08);
    overflow: hidden;
}

.jt-score-breakdown-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #a78bfa, #7c3aed);
}

.jt-score-breakdown li b {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: start;
    font-size: 0.85rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #7c3aed;
}

html[data-theme="dark"] .jt-score-ring-track {
    stroke: rgba(237, 233, 254, 0.12);
}

html[data-theme="dark"] .jt-score-ring-progress {
    filter: drop-shadow(0 0 12px rgba(167, 139, 250, 0.55));
}

html[data-theme="dark"] .jt-score-ring-label em,
html[data-theme="dark"] .jt-score-breakdown li b {
    color: #c4b5fd;
}

html[data-theme="dark"] .jt-score-breakdown {
    background: rgba(255, 255, 255, 0.04);
    box-shadow: none;
}

html[data-theme="dark"] .jt-score-breakdown li {
    border-bottom-color: rgba(237, 233, 254, 0.12);
}

html[data-theme="dark"] .jt-score-breakdown-bar {
    background: rgba(237, 233, 254, 0.12);
}

.jt-filters {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 8px 10px;
    width: 100%;
    margin-bottom: 16px;
    flex: 0 0 auto;
}

.jt-filters .jt-filter-field {
    flex: 1 1 200px;
    max-width: 280px;
    min-width: 180px;
    align-self: flex-end;
}

.jt-filters .mud-button {
    flex: 0 0 auto;
    align-self: center;
}

.jt-filters .flex-grow-1 {
    flex: 1 1 200px !important;
    max-width: 280px;
    align-self: flex-end;
}

.jt-table-wrap,
.application-table-wrapper {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.jt-table-wrap .mud-paper,
.jt-table-wrap .mud-table {
    background: var(--mud-palette-background);
    border: 1px solid #d1d5db;
    border-radius: 20px;
    box-shadow: none;
}

html[data-theme="dark"] .jt-table-wrap .mud-paper,
html[data-theme="dark"] .jt-table-wrap .mud-table {
    background: #141826;
    border-color: rgba(148, 163, 184, 0.16);
}

html[data-theme="dark"] .application-table table,
html[data-theme="dark"] .application-table th,
html[data-theme="dark"] .application-table td {
    border-color: rgba(148, 163, 184, 0.12);
}

html[data-theme="dark"] .application-table th {
    background: #101522;
    color: #cbd5e1;
}

html[data-theme="dark"] .application-table td {
    background: #141826;
    color: #e2e8f0;
}

html[data-theme="dark"] .application-table .mud-table-row:hover td {
    background: #1a2033;
}

.jt-table-wrap .mud-table-container {
    max-height: min(600px, calc(100dvh - 240px));
}

.jt-page-fill .mud-table-container {
    height: calc(100dvh - 280px) !important;
    max-height: none !important;
}

.application-table .mud-table-toolbar {
    display: none;
}

.jt-code {
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.mud-dialog {
    max-width: min(900px, calc(100vw - 16px));
    --jt-dialog-radius: 16px;
    --jt-dialog-border: rgba(168, 85, 247, 0.45);
    --jt-dialog-glow-ring: rgba(139, 92, 246, 0.18);
    --jt-dialog-glow: rgba(124, 58, 237, 0.28);
    --jt-dialog-shade: rgba(0, 0, 0, 0.55);
    --jt-dialog-haze: rgba(88, 28, 135, 0.35);
    --jt-dialog-bg-1: #0b1020;
    --jt-dialog-bg-2: #070b16;
    --jt-dialog-fg: #f8fafc;
    --jt-dialog-muted: #e2e8f0;
    --jt-dialog-close: #c4b5fd;
    --jt-dialog-actions-bg: rgba(7, 11, 22, 0.94);
    --jt-dialog-divider: rgba(139, 92, 246, 0.22);
    border-radius: var(--jt-dialog-radius) !important;
    border: 1px solid var(--jt-dialog-border) !important;
    background:
        radial-gradient(120% 80% at 50% -10%, var(--jt-dialog-haze), transparent 55%),
        linear-gradient(180deg, var(--jt-dialog-bg-1) 0%, var(--jt-dialog-bg-2) 100%) !important;
    box-shadow:
        0 0 0 1px var(--jt-dialog-glow-ring),
        0 0 40px var(--jt-dialog-glow),
        0 24px 64px var(--jt-dialog-shade) !important;
    color: var(--jt-dialog-fg);
    overflow: hidden;
}

html[data-theme="light"] .mud-dialog {
    --jt-dialog-border: rgba(124, 58, 237, 0.28);
    --jt-dialog-glow-ring: rgba(124, 58, 237, 0.08);
    --jt-dialog-glow: rgba(124, 58, 237, 0.18);
    --jt-dialog-shade: rgba(76, 29, 149, 0.14);
    --jt-dialog-haze: rgba(167, 139, 250, 0.28);
    --jt-dialog-bg-1: #f8f5ff;
    --jt-dialog-bg-2: #f1f5f9;
    --jt-dialog-fg: #0f172a;
    --jt-dialog-muted: #334155;
    --jt-dialog-close: #7c3aed;
    --jt-dialog-actions-bg: rgba(248, 245, 255, 0.96);
    --jt-dialog-divider: rgba(124, 58, 237, 0.16);
    box-shadow:
        0 0 0 1px var(--jt-dialog-glow-ring),
        0 0 36px var(--jt-dialog-glow),
        0 18px 48px var(--jt-dialog-shade) !important;
}

.mud-dialog .mud-dialog-title {
    border-bottom: none !important;
    color: var(--jt-dialog-fg) !important;
}

.mud-dialog .mud-dialog-content {
    color: var(--jt-dialog-muted);
}

.mud-dialog .mud-button-close {
    color: var(--jt-dialog-close) !important;
}

.mud-dialog .mud-dialog-actions {
    border-top: 1px solid var(--jt-dialog-divider);
    background: var(--jt-dialog-actions-bg);
}

.mud-dialog.analysis-result-dialog--fullscreen {
    border-radius: 0 !important;
}

.mud-dialog.jt-cawi-drawer {
    border-radius: 20px 0 0 20px !important;
}

.mud-dialog.mud-dialog-width-xs {
    width: min(400px, calc(100vw - 32px)) !important;
    max-width: min(400px, calc(100vw - 32px)) !important;
}

.mud-overlay .mud-dialog-content {
    max-height: min(80dvh, 720px);
    overflow: auto;
}

.application-toolbar {
    flex-wrap: wrap;
    align-items: center;
}

.application-toolbar-left,
.application-toolbar-right {
    flex: 1 1 auto;
    flex-wrap: wrap;
    min-width: 0;
}

.application-search {
    width: auto !important;
    min-width: 200px !important;
    flex: 1 1 220px !important;
}

@media (max-width: 959.98px) {

    
    
    .jt-app.mud-layout {
        --jt-mobile-appbar-height: calc(56px + env(safe-area-inset-top, 0px));
        --mud-appbar-height: var(--jt-mobile-appbar-height);
    }

    .jt-mobile-bar {
        display: flex !important;
        min-height: var(--jt-mobile-appbar-height) !important;
        height: auto !important;
        padding-top: env(safe-area-inset-top, 0px) !important;
        background: var(--mud-palette-background) !important;
        color: var(--mud-palette-text-primary) !important;
        box-shadow: none !important;
        z-index: 1300 !important;
    }

    .jt-app .jt-drawer,
    .jt-app .jt-drawer .mud-drawer-content {
        background: var(--mud-palette-background) !important;
    }

    .jt-app .jt-drawer {
        top: var(--jt-mobile-appbar-height) !important;
        height: calc(100dvh - var(--jt-mobile-appbar-height)) !important;
        max-height: calc(100dvh - var(--jt-mobile-appbar-height)) !important;
        overflow: hidden;
        z-index: 1250 !important;
        box-shadow: 12px 0 40px rgba(17, 24, 39, 0.16);
    }

    .jt-app .jt-drawer .mud-drawer-content {
        height: 100% !important;
        min-height: 0;
        max-height: 100%;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .jt-app .jt-drawer-header {
        display: none !important;
    }

    .jt-app .jt-drawer-inner {
        padding-top: 8px;
    }

    .jt-app .mud-overlay {
        z-index: 1240 !important;
    }

    .jt-app .mud-main-content.jt-main {
        margin-top: 0;
        margin-right: 0;
        margin-bottom: 0;
        margin-left: 0 !important;
        border-radius: 0;
        min-height: 100vh;
        padding: calc(var(--jt-mobile-appbar-height) + 16px) 14px 40px !important;
    }

    .jt-app-auth .mud-main-content.jt-main,
    .jt-app-auth .mud-main-content.jt-main-auth {
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 0;
    }

    .jt-page-header .jt-create,
    .jt-page-header .mud-button {
        width: 100%;
    }

    .jt-stage {
        min-height: 88px;
        padding: 12px;
    }

    .jt-stage strong {
        font-size: 1.35rem;
    }

    .jt-card {
        padding: 14px 16px;
    }

    .jt-code {
        font-size: 1.25rem;
        letter-spacing: 0.08em;
        overflow-wrap: anywhere;
    }

    .jt-page-fill .mud-table-container {
        height: calc(100dvh - 420px) !important;
    }
}

@media (max-width: 600px) {
    .jt-filters .jt-filter-field {
        flex-basis: 100%;
        max-width: 100%;
    }

    .application-toolbar-right {
        width: 100%;
        justify-content: stretch;
    }

    .application-toolbar-right .mud-button {
        flex: 1 1 auto;
    }
}

.jt-job-board-dialog.mud-dialog,
.mud-dialog.jt-job-board-dialog {
    width: min(520px, calc(100vw - 32px)) !important;
    max-width: min(520px, calc(100vw - 32px)) !important;
}

.jt-job-board-dialog .mud-dialog-content,
.jt-job-board-dialog .jt-job-board-dialog-fields,
.jt-job-board-dialog .mud-input-control {
    width: 100%;
    max-width: 100%;
}

.jt-resume-card {
    height: 100%;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 12px;
}

.jt-resume-card-body {
    min-width: 0;
    flex: 1 1 auto;
}

.jt-resume-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.jt-resume-dropzone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 140px;
    padding: 20px;
    border: 1px dashed var(--mud-palette-lines-default);
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
}

.jt-resume-dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.mud-dialog.jt-resume-view-dialog {
    width: min(920px, calc(100vw - 24px)) !important;
    max-width: min(920px, calc(100vw - 24px)) !important;
}

.jt-original-resume-frame {
    background: #30343b;
    border-radius: 10px;
    height: calc(100vh - 220px);
    min-height: 520px;
    overflow: hidden;
    position: relative;
}

.jt-original-resume-pdf {
    border: 0;
    display: block;
    height: 100%;
    width: 100%;
}

.jt-original-resume-docx-progress {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    z-index: 1;
}

.jt-original-resume-docx {
    background: #525659;
    box-sizing: border-box;
    height: 100%;
    overflow: auto;
    padding: 16px;
    width: 100%;
}

.jt-original-resume-docx .jt-docx-wrapper {
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0;
}

.jt-original-resume-docx .jt-docx {
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    color: #111;
    margin: 0 auto;
}

@media (max-width: 640px) {
    .jt-original-resume-frame {
        height: calc(100vh - 190px);
        min-height: 420px;
    }

}

