/* JarvisVisual styles */
.jvis-app {
    position: relative;
}

.jvis-alerts {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1080;
    width: 22rem;
    max-width: calc(100vw - 2rem);
}

.jvis-alerts .alert {
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);
}

.jvis-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: .75rem;
    background: rgba(13, 110, 253, .1);
    color: #0d6efd;
    font-size: 1.25rem;
}

.jvis-source-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: .5rem;
    background: rgba(33, 37, 41, .06);
    color: #212529;
}

.jvis-subnav {
    border-bottom: 1px solid rgba(0, 0, 0, .08);
    padding-bottom: .75rem;
}
:root {
    --jvis-ink: #101014;
    --jvis-accent: #3d5afe;
    --jvis-accent-soft: #eef1ff;
    --jvis-radius: 1.25rem;
}

.jvis-app {
    font-size: 1.0625rem;
    color: var(--jvis-ink);
}

.jvis-app h1,
.jvis-app h2,
.jvis-app h3 {
    font-weight: 800;
    letter-spacing: -.01em;
}

.jvis-app .card {
    border: 0;
    border-radius: var(--jvis-radius);
    box-shadow: 0 .75rem 2rem rgba(16, 16, 20, .08);
}

.jvis-app .card-header {
    border: 0;
    padding-top: 1.15rem;
    font-weight: 800;
}

.jvis-app .btn {
    border-radius: 999px;
    font-weight: 700;
    padding: .6rem 1.25rem;
}

.jvis-app .btn-lg {
    padding: .95rem 1.9rem;
    font-size: 1.15rem;
}

.jvis-app .btn-primary {
    background: var(--jvis-ink);
    border-color: var(--jvis-ink);
}

.jvis-app .btn-primary:hover,
.jvis-app .btn-primary:focus {
    background: #26263a;
    border-color: #26263a;
}

.jvis-app .btn-sm {
    padding: .35rem .85rem;
}

.jvis-app .form-label {
    font-weight: 800;
    font-size: 1.05rem;
    margin-bottom: .4rem;
}

.jvis-app .form-text {
    font-size: .95rem;
}

.jvis-app .form-control,
.jvis-app .form-select {
    border: 2px solid #e6e6ee;
    border-radius: 1rem;
    padding: .8rem 1rem;
    font-size: 1.05rem;
}

.jvis-app .form-control:focus,
.jvis-app .form-select:focus {
    border-color: var(--jvis-accent);
    box-shadow: 0 0 0 .25rem rgba(61, 90, 254, .15);
}

.jvis-app .form-check-input {
    width: 1.35rem;
    height: 1.35rem;
}

.jvis-app .form-check-label {
    font-size: 1rem;
}

/* One numbered step, so the order of things is never in doubt. */
.jvis-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.jvis-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--jvis-ink);
    color: #fff;
    font-size: 1.35rem;
    font-weight: 800;
}

.jvis-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 1.5rem;
}

.jvis-help {
    background: var(--jvis-accent-soft);
    border-radius: 1rem;
    padding: 1rem 1.15rem;
    font-size: 1rem;
}

.jvis-examples {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-bottom: 1.25rem;
}

.jvis-example {
    text-align: left;
    white-space: normal;
    border-radius: 1rem !important;
    font-weight: 500 !important;
}

details.jvis-advanced {
    border: 2px dashed #e6e6ee;
    border-radius: 1rem;
    padding: .85rem 1rem;
}

details.jvis-advanced > summary {
    cursor: pointer;
    font-weight: 800;
    list-style: none;
}

.jvis-lang .btn {
    padding: .3rem .8rem;
    font-size: .95rem;
}

.jvis-code-form .form-control {
    font-size: 2rem;
    letter-spacing: .35rem;
    text-align: center;
    font-weight: 800;
}
.jvis-kpi .jvis-kpi-icon {
    font-size: 1.75rem;
    opacity: .35;
}

.jvis-chip {
    display: inline-flex;
    align-items: center;
    border: 1px solid currentColor;
    border-radius: 999px;
    padding: .1rem .55rem;
    font-size: .75rem;
    line-height: 1.3;
    background: #fff;
}

.jvis-entry {
    border: 1px solid rgba(0, 0, 0, .08);
    border-left: 4px solid #0d6efd;
    border-radius: .35rem;
    padding: .5rem .6rem;
    margin-bottom: .5rem;
    background: #fff;
}

.jvis-day-body {
    max-height: 26rem;
    overflow: auto;
}

.jvis-note {
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: .35rem;
    padding: .6rem;
    margin-bottom: .6rem;
    background: #fff;
}

.jvis-note-paused {
    background: rgba(255, 193, 7, .06);
}

.jvis-note-completed,
.jvis-note-cancelled,
.jvis-note-expired {
    opacity: .8;
}

.jvis-note-body {
    max-height: 30rem;
    overflow: auto;
}

.jvis-note-picker {
    max-height: 9rem;
    overflow: auto;
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: .35rem;
    padding: .5rem;
}

.jvis-busy {
    pointer-events: none;
    opacity: .55;
}

.jvis-day {
    background: #fff;
}

#jvis-text-library .table {
    margin-bottom: 0;
}

#jvis-text-library td {
    vertical-align: top;
}
.jvis-calendar {
    table-layout: fixed;
}

.jvis-calendar .jvis-calendar-hour {
    width: 4.5rem;
    white-space: nowrap;
    vertical-align: top;
}

.jvis-calendar-cell {
    position: relative;
    height: 2.6rem;
    padding: 1px;
    vertical-align: top;
}

.jvis-calendar-band {
    position: absolute;
    inset: 0;
    opacity: .16;
}

.jvis-calendar-today {
    background: rgba(13, 110, 253, .05);
}

.jvis-calendar-entry {
    position: relative;
    display: block;
    margin-bottom: 1px;
    padding: 0 .3rem;
    border-radius: .2rem;
    font-size: .7rem;
    line-height: 1.5;
    color: #fff;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.jvis-calendar-entry-soft {
    border: 1px dashed rgba(0, 0, 0, .25);
}

#jvis-calendar-title {
    min-width: 12rem;
}

.jvis-calendar-now {
    position: absolute;
    left: 0;
    right: 0;
    height: 0;
    border-top: 2px solid #dc3545;
    z-index: 4;
    pointer-events: none;
}

.jvis-calendar-now-dot {
    position: absolute;
    top: -4px;
    left: -4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, .2);
}
.jvis-graph {
    overflow: auto;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: .35rem;
    background: #fff;
    min-height: 12rem;
}

.jvis-graph svg {
    display: block;
}

.jvis-graph-edge {
    stroke: rgba(33, 37, 41, .22);
    stroke-width: 1.4;
    fill: none;
}

.jvis-graph-edge-source {
    stroke-dasharray: 4 3;
}

.jvis-graph-node {
    cursor: pointer;
}

.jvis-graph-node circle {
    stroke: #fff;
    stroke-width: 2;
}

.jvis-graph-node text {
    font-size: 11px;
    fill: #212529;
}

.jvis-graph-node .jvis-graph-detail {
    font-size: 10px;
    fill: #6c757d;
}
.jvis-public {
    background: #fff;
}

.jvis-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.5rem;
    flex-wrap: wrap;
}

.jvis-logo {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--jvis-ink);
    letter-spacing: -.02em;
}

.jvis-hero {
    background: linear-gradient(135deg, #3d5afe 0%, #8e24aa 55%, #101014 100%);
    color: #fff;
    padding: 4.5rem 1.5rem 5rem;
    text-align: center;
}

.jvis-hero-inner {
    max-width: 54rem;
    margin: 0 auto;
}

.jvis-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 800;
    font-size: .85rem;
    opacity: .9;
    margin-bottom: 1rem;
}

.jvis-hero-title {
    font-size: clamp(2.1rem, 5vw, 3.6rem);
    line-height: 1.05;
    margin-bottom: 1.25rem;
}

.jvis-hero-text {
    font-size: clamp(1.1rem, 2.2vw, 1.35rem);
    margin-bottom: 2rem;
    opacity: .95;
}

.jvis-hero-note {
    margin-top: 1.5rem;
    margin-bottom: 0;
    font-size: 1rem;
    opacity: .85;
}

.jvis-cta {
    box-shadow: 0 .75rem 1.5rem rgba(16, 16, 20, .2);
}

.jvis-section {
    max-width: 72rem;
    margin: 0 auto;
    padding: 3.5rem 1.5rem;
}

.jvis-section-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    text-align: center;
    margin-bottom: 2.25rem;
}

.jvis-recipe {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.jvis-recipe-part {
    flex: 1 1 20rem;
    border-radius: 1.5rem;
    padding: 1.75rem;
    color: #fff;
}

.jvis-recipe-if {
    background: var(--jvis-ink);
}

.jvis-recipe-then {
    background: var(--jvis-accent);
}

.jvis-recipe-label {
    display: block;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .8rem;
    font-weight: 800;
    opacity: .85;
    margin-bottom: .75rem;
}

.jvis-recipe-text {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0;
}

.jvis-recipe-arrow {
    display: inline-flex;
    align-items: center;
    color: #adb5bd;
    font-size: 1.5rem;
}

.jvis-tile {
    height: 100%;
    border-radius: 1.5rem;
    padding: 1.75rem;
    background: #f7f7fb;
}

.jvis-tile-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1rem;
    color: #fff;
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.jvis-tile-title {
    font-size: 1.2rem;
    margin-bottom: .5rem;
}

.jvis-tile-text {
    margin-bottom: 0;
    color: #4b4b57;
}

.jvis-faq {
    max-width: 46rem;
    margin: 0 auto;
}

.jvis-faq-item {
    border-top: 2px solid #eeeef4;
    padding: 1.25rem 0;
}

.jvis-faq-question {
    font-size: 1.15rem;
    margin-bottom: .35rem;
}

.jvis-faq-answer {
    margin-bottom: 0;
    color: #4b4b57;
}

.jvis-cta-band {
    background: #f7f7fb;
    padding: 3.5rem 1.5rem;
    text-align: center;
}

.jvis-cta-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: .75rem;
}

.jvis-cta-text {
    font-size: 1.1rem;
    margin-bottom: 1.75rem;
    color: #4b4b57;
}

.jvis-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 2rem 1.5rem 3rem;
}

.jvis-auth-page {
    min-height: 100vh;
    background: linear-gradient(160deg, #f7f7fb 0%, #eef1ff 100%);
}

.jvis-auth-wrapper {
    display: flex;
    justify-content: center;
    padding: 1.5rem 1.5rem 4rem;
}

.jvis-auth-card {
    width: 100%;
    max-width: 30rem;
    background: #fff;
    border-radius: 1.75rem;
    padding: 2.25rem;
    box-shadow: 0 1rem 2.5rem rgba(16, 16, 20, .12);
}

.jvis-auth-title {
    font-size: 1.75rem;
    margin-bottom: .5rem;
}

.jvis-auth-text {
    color: #4b4b57;
    font-size: 1.05rem;
}
