:root {
    --jn-apple-ease: cubic-bezier(.22, 1, .36, 1);
    --jn-apple-fast: cubic-bezier(.2, .8, .2, 1);
    --jn-apple-navy: #123b63;
    --jn-apple-navy-deep: #0a2743;
    --jn-apple-blue: #2f6fa8;
    --jn-apple-success: #20a66a;
    --jn-apple-error: #d14a42;
    --jn-siri-blue: #0a84ff;
    --jn-siri-cyan: #64d2ff;
    --jn-siri-green: #30d158;
    --jn-siri-purple: #bf5af2;
    --jn-siri-pink: #ff375f;
    --jn-siri-orange: #ff9f0a;
}

/*
 * Der aktive Sidebarpunkt wird bereits beim ersten Rendering vollständig
 * gezeichnet. Dadurch hängt seine Farbe nicht mehr vom später gestarteten
 * Navigationsskript ab und kann beim Seitenwechsel nicht dunkel aufblitzen.
 */
.jn-side-nav a.active,
.premium-nav a.active,
.az-nav.jn-side-nav a.active,
.jn-side-nav a.active:hover,
.premium-nav a.active:hover,
.az-nav.jn-side-nav a.active:hover,
.jn-side-nav a.active:active,
.premium-nav a.active:active,
.az-nav.jn-side-nav a.active:active {
    background: linear-gradient(135deg, rgba(229, 240, 251, .98), rgba(243, 248, 253, .98)) !important;
    color: #123b63 !important;
    border-color: transparent !important;
    box-shadow: 0 12px 30px rgba(15, 53, 93, .09), inset 0 0 0 1px rgba(23, 74, 126, .12), inset 0 1px 0 rgba(255, 255, 255, .90) !important;
    filter: none !important;
    transform: none !important;
    transition: none !important;
}

.jn-side-nav a.active::before,
.premium-nav a.active::before,
.az-nav.jn-side-nav a.active::before {
    background-color: #123b63 !important;
}

body[data-theme="night"] .jn-side-nav a.active,
body[data-theme="night"] .premium-nav a.active,
body.admin-zentrale-page[data-theme="night"] .az-nav.jn-side-nav a.active,
body[data-theme="night"] .jn-side-nav a.active:hover,
body[data-theme="night"] .premium-nav a.active:hover,
body.admin-zentrale-page[data-theme="night"] .az-nav.jn-side-nav a.active:hover,
body[data-theme="night"] .jn-side-nav a.active:active,
body[data-theme="night"] .premium-nav a.active:active,
body.admin-zentrale-page[data-theme="night"] .az-nav.jn-side-nav a.active:active {
    background: linear-gradient(135deg, rgba(33, 76, 116, .54), rgba(25, 54, 82, .62)) !important;
    color: #f2f7fc !important;
    box-shadow: 0 16px 38px rgba(0, 0, 0, .22), inset 0 0 0 1px rgba(105, 166, 222, .12), inset 0 1px 0 rgba(255, 255, 255, .08) !important;
}

body[data-theme="night"] .jn-side-nav a.active::before,
body[data-theme="night"] .premium-nav a.active::before,
body.admin-zentrale-page[data-theme="night"] .az-nav.jn-side-nav a.active::before {
    background-color: #f2f7fc !important;
}

.jn-side-nav.has-jn-glider,
.az-nav.has-jn-glider {
    isolation: isolate !important;
}

.jn-side-nav.has-jn-glider a,
.az-nav.has-jn-glider a {
    z-index: 1 !important;
}

.jn-side-nav.has-jn-glider a.active,
.premium-nav.has-jn-glider a.active,
.az-nav.has-jn-glider a.active {
    background: transparent !important;
    box-shadow: none !important;
    color: #123b63 !important;
    text-shadow: none !important;
}

.jn-side-nav.has-jn-glider a.active::before,
.premium-nav.has-jn-glider a.active::before,
.az-nav.has-jn-glider a.active::before {
    background-color: #123b63 !important;
}

.jn-side-nav.has-jn-glider a:not(.active):hover,
.premium-nav.has-jn-glider a:not(.active):hover,
.az-nav.has-jn-glider a:not(.active):hover {
    color: #123b63 !important;
}

.jn-side-nav.has-jn-glider a:focus-visible,
.premium-nav.has-jn-glider a:focus-visible,
.az-nav.has-jn-glider a:focus-visible {
    outline: 3px solid rgba(10, 132, 255, .34) !important;
    outline-offset: 2px !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

.jn-side-nav a,
.premium-nav a,
.az-nav.jn-side-nav a {
    -webkit-tap-highlight-color: transparent !important;
    touch-action: manipulation;
}

.jn-side-nav a:focus:not(:focus-visible),
.premium-nav a:focus:not(:focus-visible),
.az-nav.jn-side-nav a:focus:not(:focus-visible) {
    outline: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

.jn-side-nav a:not(.active):active,
.premium-nav a:not(.active):active,
.az-nav.jn-side-nav a:not(.active):active {
    border-color: transparent !important;
    background: rgba(229, 240, 251, .86) !important;
    color: #123b63 !important;
    box-shadow: none !important;
    filter: none !important;
    transform: none !important;
}

.jn-side-nav.has-jn-glider a.active:active,
.premium-nav.has-jn-glider a.active:active,
.az-nav.has-jn-glider a.active:active {
    border-color: transparent !important;
    background: transparent !important;
    color: #123b63 !important;
    box-shadow: none !important;
    filter: none !important;
    transform: none !important;
}

body[data-theme="night"] .jn-side-nav a:not(.active):active,
body[data-theme="night"] .premium-nav a:not(.active):active,
body.admin-zentrale-page[data-theme="night"] .az-nav.jn-side-nav a:not(.active):active {
    background: rgba(62, 113, 160, .24) !important;
    color: #f2f7fc !important;
}

body[data-theme="night"] .jn-side-nav.has-jn-glider a.active:active,
body[data-theme="night"] .premium-nav.has-jn-glider a.active:active,
body.admin-zentrale-page[data-theme="night"] .az-nav.has-jn-glider a.active:active {
    background: transparent !important;
    color: #f2f7fc !important;
}

.jn-nav-glider {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 0;
    height: 58px;
    border: 1px solid rgba(23, 74, 126, .12);
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(229, 240, 251, .98), rgba(243, 248, 253, .98));
    box-shadow: 0 12px 30px rgba(15, 53, 93, .09), inset 0 1px 0 rgba(255, 255, 255, .90);
    opacity: 0;
    pointer-events: none;
    transition: none;
    will-change: transform, height;
}

body[data-theme="night"] .jn-nav-glider {
    border-color: rgba(105, 166, 222, .12);
    background: linear-gradient(135deg, rgba(33, 76, 116, .54), rgba(25, 54, 82, .62));
    box-shadow: 0 16px 38px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .08);
}

body[data-theme="night"] .jn-side-nav.has-jn-glider a.active,
body[data-theme="night"] .premium-nav.has-jn-glider a.active,
body[data-theme="night"] .az-nav.has-jn-glider a.active {
    color: #f2f7fc !important;
}

body[data-theme="night"] .jn-side-nav.has-jn-glider a.active::before,
body[data-theme="night"] .premium-nav.has-jn-glider a.active::before,
body[data-theme="night"] .az-nav.has-jn-glider a.active::before {
    background-color: #f2f7fc !important;
}

.jn-nav-glider.no-motion {
    transition: none !important;
}

.jn-apple-status {
    --jn-status-accent: #0a84ff;
    --jn-status-accent-soft: rgba(10, 132, 255, .20);
    position: fixed;
    top: max(12px, env(safe-area-inset-top));
    left: 50%;
    z-index: 2147482500;
    width: fit-content;
    min-width: 132px;
    max-width: min(420px, calc(100vw - 24px));
    min-height: 42px;
    padding: 5px 13px 5px 5px;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    isolation: isolate;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 999px;
    background: rgba(0, 0, 0, .96);
    color: #ffffff;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .20), inset 0 1px 0 rgba(255, 255, 255, .05);
    backdrop-filter: blur(24px) saturate(1.05);
    opacity: 0;
    transform: translate3d(-50%, -6px, 0) scale(.78, .68);
    transform-origin: 50% 0;
    pointer-events: none;
    transition: opacity .14s ease, transform .32s var(--jn-apple-ease), min-width .28s var(--jn-apple-ease), min-height .28s var(--jn-apple-ease), padding .28s var(--jn-apple-ease), gap .28s var(--jn-apple-ease), grid-template-columns .28s var(--jn-apple-ease);
}

.jn-apple-status::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 21px 50%, var(--jn-status-accent-soft), transparent 42px);
    opacity: .72;
    pointer-events: none;
}

.jn-apple-status > * {
    z-index: 1;
}

.jn-apple-status.is-visible {
    opacity: 1;
    transform: translate3d(-50%, 0, 0) scale(1);
}

.jn-apple-status.is-closing {
    opacity: 0;
    transform: translate3d(-50%, -5px, 0) scale(.76, .64);
    transition-duration: .16s, .22s, .22s, .22s, .22s, .22s, .22s;
}

.jn-apple-status.is-updating {
    transform: translate3d(-50%, 0, 0) scale(1.012);
}

.jn-apple-status.is-immediate {
    transition: none !important;
}

.jn-apple-status[data-phase="working"].is-visible::before,
.jn-apple-status[data-phase="searching"].is-visible::before {
    animation: jn-status-breathe 1.6s ease-in-out infinite;
}

.jn-apple-status.is-idle {
    display: none;
}

.jn-apple-status-visual {
    position: relative;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .08);
    overflow: hidden;
    background: rgba(255, 255, 255, .075);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
    transition: width .28s var(--jn-apple-ease), height .28s var(--jn-apple-ease), background .2s ease;
}

.jn-apple-status-icon {
    position: relative;
    z-index: 1;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--jn-status-accent-soft);
    color: var(--jn-status-accent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--jn-status-accent) 22%, transparent);
}

.jn-apple-status-icon::before {
    content: "✦";
    font-size: 12px;
    line-height: 1;
    font-weight: 900;
}

.jn-apple-status[data-phase="working"] .jn-apple-status-icon::before,
.jn-apple-status[data-phase="searching"] .jn-apple-status-icon::before {
    content: "";
    width: 9px;
    height: 9px;
    border: 2px solid color-mix(in srgb, var(--jn-status-accent) 30%, transparent);
    border-top-color: var(--jn-status-accent);
    border-radius: 999px;
    animation: jn-button-spin .72s linear infinite;
}

.jn-apple-status[data-phase="success"] .jn-apple-status-icon::before {
    content: "✓";
    font-size: 17px;
    font-weight: 950;
    animation: jn-check-pop .36s var(--jn-apple-ease) both;
}

.jn-apple-status[data-phase="error"] .jn-apple-status-icon::before,
.jn-apple-status[data-phase="offline"] .jn-apple-status-icon::before,
.jn-apple-status[data-phase="warning"] .jn-apple-status-icon::before {
    content: "!";
    font-size: 15px;
    font-weight: 950;
}

.jn-apple-status-copy {
    min-width: 0;
    display: flex;
    align-items: center;
}

.jn-apple-status-text {
    min-width: 0;
    overflow: hidden;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -.01em;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: font-size .28s var(--jn-apple-ease);
}

.jn-apple-status-activity {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    width: 0;
    height: 16px;
    padding: 0;
    overflow: hidden;
    opacity: 0;
    transition: width .24s ease, opacity .18s ease;
}

.jn-apple-status-activity i {
    width: 2px;
    height: 5px;
    border-radius: 999px;
    background: var(--jn-status-accent);
}

.jn-apple-status[data-phase="working"] .jn-apple-status-activity,
.jn-apple-status[data-phase="searching"] .jn-apple-status-activity {
    width: 10px;
    opacity: 1;
}

.jn-apple-status[data-phase="working"] .jn-apple-status-activity i,
.jn-apple-status[data-phase="searching"] .jn-apple-status-activity i {
    animation: jn-intelligence-wave .72s ease-in-out infinite alternate;
}

.jn-apple-status-activity i:nth-child(2) {
    animation-delay: .12s !important;
}

.jn-apple-status-activity i:nth-child(3) {
    animation-delay: .24s !important;
}

.jn-apple-status[data-intent="copy"],
.jn-apple-status[data-intent="save"],
.jn-apple-status[data-intent="complete"] {
    --jn-status-accent: #30d158;
    --jn-status-accent-soft: rgba(48, 209, 88, .18);
}

.jn-apple-status[data-intent="destructive"],
.jn-apple-status[data-intent="error"] {
    --jn-status-accent: #ff453a;
    --jn-status-accent-soft: rgba(255, 69, 58, .18);
}

.jn-apple-status[data-intent="warning"] {
    --jn-status-accent: #ff9f0a;
    --jn-status-accent-soft: rgba(255, 159, 10, .18);
}

.jn-apple-status[data-intent="create"],
.jn-apple-status[data-intent="send"] {
    --jn-status-accent: #0a84ff;
    --jn-status-accent-soft: rgba(10, 132, 255, .18);
}

.jn-apple-status[data-intent="search"],
.jn-apple-status[data-intent="thinking"],
.jn-apple-status[data-intent="sync"],
.jn-apple-status[data-intent="security"] {
    --jn-status-accent: #64d2ff;
    --jn-status-accent-soft: rgba(100, 210, 255, .17);
}

.jn-apple-status[data-intent="offline"] {
    --jn-status-accent: #ff9f0a;
    --jn-status-accent-soft: rgba(255, 159, 10, .18);
}

.bc-toast {
    display: none !important;
}

body.start-page .start-main {
    gap: 26px !important;
}

body.start-page .start-card-grid {
    gap: 18px !important;
}

body.start-page .start-card {
    min-height: 238px !important;
    padding: 26px 26px 22px !important;
    border-radius: 22px !important;
    box-shadow: 0 10px 28px rgba(15, 53, 93, .045) !important;
    transition: transform .28s var(--jn-apple-ease), border-color .22s ease, box-shadow .28s ease !important;
}

body.start-page .start-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(15, 53, 93, .08) !important;
}

body.start-page .start-card h2 {
    margin: 24px 0 8px !important;
    font-size: 21px !important;
}

body.start-page .start-card p {
    font-size: 14px !important;
    line-height: 1.55 !important;
}

body.start-page .start-card-link {
    padding-top: 18px !important;
    font-size: 14px !important;
}

body.start-page .start-hero {
    position: relative;
    isolation: isolate;
    min-height: 310px;
    padding: clamp(38px, 5vw, 66px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #d9e3ed;
    border-radius: 32px;
    background: linear-gradient(145deg, #ffffff 0%, #f7faff 72%, #edf4fb 100%);
    box-shadow: 0 22px 58px rgba(15, 53, 93, .08);
}

body.start-page .start-hero::after {
    content: "JN";
    position: absolute;
    right: clamp(20px, 5vw, 72px);
    z-index: -1;
    color: rgba(18, 59, 99, .055);
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: clamp(130px, 18vw, 250px);
    line-height: 1;
    font-weight: 850;
    letter-spacing: -.09em;
    pointer-events: none;
}

body[data-theme="night"].start-page .start-hero {
    border-color: rgba(202, 220, 238, .12);
    background: linear-gradient(145deg, #142335 0%, #102033 72%, #0d1b2b 100%);
    box-shadow: 0 24px 64px rgba(0, 0, 0, .22);
}

body[data-theme="night"].start-page .start-hero::after {
    color: rgba(120, 183, 238, .055);
}

body.start-page .start-hero-kicker {
    margin: 0 0 14px !important;
    color: var(--jn-apple-blue) !important;
    font-size: 12px !important;
    line-height: 1 !important;
    font-weight: 850 !important;
    letter-spacing: .18em !important;
    text-transform: uppercase;
}

body.start-page .start-hero h1 {
    position: relative;
    margin: 0;
    max-width: 760px;
    color: #101c2c;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: clamp(44px, 5.4vw, 78px);
    line-height: .98;
    font-weight: 780;
    letter-spacing: -.058em;
}

body[data-theme="night"].start-page .start-hero h1 {
    color: #f2f7fb;
}

body.start-page .start-hero > p:not(.start-hero-kicker) {
    margin: 18px 0 0;
    color: #66778a;
    font-size: 16px;
    line-height: 1.55;
}

body[data-theme="night"].start-page .start-hero > p:not(.start-hero-kicker) {
    color: #b8c6d5;
}

.start-hero-action {
    min-height: 54px;
    margin-top: 28px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    gap: 22px;
    border-radius: 17px;
    background: linear-gradient(180deg, #1b558b, #123b63);
    color: #ffffff !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 14px 30px rgba(18, 59, 99, .22), inset 0 1px 0 rgba(255, 255, 255, .18);
    transition: transform .2s var(--jn-apple-fast), box-shadow .2s ease, background .2s ease;
}

.start-hero-action:hover {
    transform: translate3d(0, -2px, 0);
    box-shadow: 0 18px 38px rgba(18, 59, 99, .27), inset 0 1px 0 rgba(255, 255, 255, .20);
}

.start-hero-action:active {
    transform: scale(.97);
}

.start-hero-action i {
    font-style: normal;
    font-size: 20px;
    transition: transform .22s var(--jn-apple-ease);
}

.start-hero-action:hover i {
    transform: translateX(3px);
}

button,
.solid-action,
.soft-action,
.line-button,
.settings-option-card,
.support-action-card,
.start-card,
.start-admin-link,
.admin-users-primary,
.admin-users-back {
    -webkit-tap-highlight-color: transparent;
}

button:not(:disabled):active,
.solid-action:not([aria-disabled="true"]):active,
.soft-action:not([aria-disabled="true"]):active,
.line-button:not([aria-disabled="true"]):active,
.settings-option-card:active,
.support-action-card:active,
.start-card:active {
    transform: scale(.975) !important;
    transition-duration: .08s !important;
}

button.is-copied,
.solid-action.is-copied,
.line-button.is-copied {
    gap: 8px !important;
    border-color: transparent !important;
    background: linear-gradient(180deg, #29ad70, #178653) !important;
    color: #ffffff !important;
    box-shadow: 0 12px 28px rgba(23, 134, 83, .22) !important;
    animation: jn-copy-confirm .42s var(--jn-apple-ease) both;
}

html body.page-copy .bc-copy-action-cluster > .solid-action.is-copied,
html body.page-copy .bc-copy-action-cluster > .line-button.is-copied {
    border-color: #16a765 !important;
    background: linear-gradient(135deg, #31d17c, #139b59) !important;
    color: #ffffff !important;
    box-shadow: 0 13px 30px rgba(20, 166, 93, .34), inset 0 1px 0 rgba(255, 255, 255, .24) !important;
}

button.is-copied::before,
.solid-action.is-copied::before,
.line-button.is-copied::before {
    content: "✓";
    width: 23px;
    height: 23px;
    display: inline-grid;
    flex: 0 0 23px;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, .20);
    color: #ffffff;
    font-size: 15px;
    line-height: 1;
    font-weight: 950;
    animation: jn-check-pop .36s var(--jn-apple-ease) both;
}

.bc-icon-toggle:active {
    animation: jn-star-pop .38s var(--jn-apple-ease);
}

.jn-button-busy {
    position: relative !important;
    padding-right: 48px !important;
    pointer-events: none !important;
}

.jn-button-busy::after {
    content: "";
    position: absolute;
    right: 18px;
    width: 15px;
    height: 15px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 999px;
    opacity: .78;
    animation: jn-button-spin .72s linear infinite;
}

dialog[open] {
    animation: jn-dialog-in .32s var(--jn-apple-ease) both;
    transform-origin: 50% 46%;
}

dialog::backdrop {
    background: rgba(8, 25, 42, .30) !important;
    backdrop-filter: blur(10px) saturate(1.08);
}

dialog[open]::backdrop {
    animation: jn-backdrop-in .28s ease both;
}

dialog.jn-dialog-closing {
    animation: jn-dialog-out .17s ease both !important;
    pointer-events: none;
}

dialog.jn-dialog-closing::backdrop {
    animation: jn-backdrop-out .17s ease both !important;
}

.bc-library-modal.is-open .bc-library-backdrop {
    animation: jn-backdrop-in .26s ease both;
    backdrop-filter: blur(10px) saturate(1.08);
}

.bc-library-modal.is-open .bc-library-dialog {
    animation: jn-dialog-in .32s var(--jn-apple-ease) both;
}

.bc-library-modal.is-closing .bc-library-backdrop {
    animation: jn-backdrop-out .18s ease both;
}

.bc-library-modal.is-closing .bc-library-dialog {
    animation: jn-dialog-out .18s ease both;
}

.jn-coming-overlay {
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s ease, visibility .22s step-end;
}

.jn-coming-overlay.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity .22s ease;
}

.jn-coming-overlay .jn-coming-card {
    transform: translateY(16px) scale(.95);
    transition: transform .34s var(--jn-apple-ease);
}

.jn-coming-overlay.is-open .jn-coming-card {
    transform: translateY(0) scale(1);
}

body.page-copy .bc-sticky-search {
    transition: padding .28s var(--jn-apple-ease), border-radius .28s var(--jn-apple-ease), box-shadow .28s ease, background .28s ease !important;
}

body.page-copy .bc-sticky-search .bc-search-box,
body.page-copy .bc-sticky-search .bc-sort-select,
body.page-copy .bc-sticky-search .bc-small-action,
body.page-copy .bc-sticky-search .bc-filter-line,
body.page-copy .bc-sticky-search .bc-tag-chips {
    transition: min-height .28s var(--jn-apple-ease), height .28s var(--jn-apple-ease), margin .28s var(--jn-apple-ease), opacity .2s ease !important;
}

body.page-copy .bc-sticky-search.is-compact {
    top: 8px !important;
    padding: 9px 11px !important;
    border-radius: 19px !important;
    background: rgba(255, 255, 255, .91) !important;
    box-shadow: 0 16px 38px rgba(15, 53, 93, .13) !important;
}

body[data-theme="night"].page-copy .bc-sticky-search.is-compact {
    background: rgba(15, 29, 45, .92) !important;
}

body.page-copy .bc-sticky-search.is-compact .bc-search-box,
body.page-copy .bc-sticky-search.is-compact .bc-search-box input,
body.page-copy .bc-sticky-search.is-compact .bc-sort-select,
body.page-copy .bc-sticky-search.is-compact .bc-small-action {
    min-height: 42px !important;
    height: 42px !important;
}

body.page-copy .bc-sticky-search.is-compact .bc-filter-line {
    margin-top: 7px !important;
}

body.page-copy .bc-sticky-search.is-compact .bc-tag-chips {
    max-height: 0;
    margin: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.jn-copy-skeleton,
.jn-library-skeleton {
    width: 100%;
    display: grid;
    gap: 16px;
}

.jn-skeleton-card,
.jn-library-skeleton > i {
    min-height: 190px;
    padding: 24px;
    overflow: hidden;
    border: 1px solid rgba(23, 74, 126, .09);
    border-radius: 24px;
    background: rgba(255, 255, 255, .74);
    box-shadow: 0 18px 46px rgba(15, 53, 93, .06);
}

.jn-skeleton-line,
.jn-skeleton-pills i,
.jn-skeleton-row,
.jn-library-skeleton > i::before,
.jn-library-skeleton > i::after {
    display: block;
    border-radius: 999px;
    background: linear-gradient(100deg, #e9eff5 22%, #f8fbfd 40%, #e9eff5 62%);
    background-size: 240% 100%;
    animation: jn-skeleton-shimmer 1.25s ease-in-out infinite;
}

.jn-skeleton-title {
    width: min(360px, 56%);
    height: 34px;
}

.jn-skeleton-pills {
    margin-top: 16px;
    display: flex;
    gap: 8px;
}

.jn-skeleton-pills i {
    width: 84px;
    height: 26px;
}

.jn-skeleton-row {
    width: 100%;
    height: 56px;
    margin-top: 25px;
    border-radius: 16px;
}

.jn-skeleton-row.short {
    width: 72%;
    margin-top: 10px;
}

.jn-library-skeleton {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.jn-library-skeleton > i {
    position: relative;
    min-height: 260px;
}

.jn-library-skeleton > i::before,
.jn-library-skeleton > i::after {
    content: "";
    width: 68%;
    height: 28px;
}

.jn-library-skeleton > i::after {
    width: 92%;
    height: 80px;
    margin-top: 26px;
    border-radius: 16px;
}

body[data-theme="night"] .jn-skeleton-card,
body[data-theme="night"] .jn-library-skeleton > i {
    border-color: rgba(194, 215, 235, .10);
    background: rgba(255, 255, 255, .045);
}

body[data-theme="night"] .jn-skeleton-line,
body[data-theme="night"] .jn-skeleton-pills i,
body[data-theme="night"] .jn-skeleton-row,
body[data-theme="night"] .jn-library-skeleton > i::before,
body[data-theme="night"] .jn-library-skeleton > i::after {
    background: linear-gradient(100deg, #243548 22%, #33485e 40%, #243548 62%);
    background-size: 240% 100%;
}

.jn-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@keyframes jn-dialog-in {
    from { opacity: 0; transform: translateY(18px) scale(.94); filter: blur(4px); }
    to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes jn-dialog-out {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to { opacity: 0; transform: translateY(10px) scale(.97); }
}

@keyframes jn-backdrop-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes jn-backdrop-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes jn-copy-confirm {
    0% { transform: scale(.96); }
    55% { transform: scale(1.04); }
    100% { transform: scale(1); }
}

@keyframes jn-intelligence-wave {
    from { height: 4px; opacity: .48; }
    to { height: 14px; opacity: 1; }
}

@keyframes jn-check-pop {
    0% { opacity: 0; transform: scale(.45); }
    65% { opacity: 1; transform: scale(1.18); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes jn-star-pop {
    0% { transform: scale(.82) rotate(-8deg); }
    60% { transform: scale(1.16) rotate(4deg); }
    100% { transform: scale(1) rotate(0); }
}

@keyframes jn-button-spin {
    to { transform: rotate(360deg); }
}

@keyframes jn-status-breathe {
    0%, 100% { opacity: .48; }
    50% { opacity: .82; }
}

@keyframes jn-skeleton-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

@media (max-width: 900px) {
    body.start-page .start-hero {
        min-height: 280px;
        border-radius: 26px;
    }

    .jn-library-skeleton {
        grid-template-columns: 1fr;
    }

    body.page-copy .bc-sticky-search.is-compact .bc-tag-chips {
        display: none !important;
    }
}

@media (max-width: 620px) {
    .jn-apple-status {
        top: max(9px, env(safe-area-inset-top));
        width: fit-content;
        min-width: 126px;
        max-width: calc(100vw - 20px);
        grid-template-columns: 32px minmax(0, 1fr) auto;
        padding: 5px 12px 5px 5px;
    }

    .jn-apple-status-visual {
        width: 32px;
        height: 32px;
    }

    body.start-page .start-hero {
        min-height: 320px;
        padding: 30px 24px;
    }

    body.start-page .start-hero::after {
        right: 16px;
        bottom: 4px;
        font-size: 132px;
    }

    .start-hero-action {
        width: 100%;
        justify-content: space-between;
    }
}

@media (prefers-reduced-motion: reduce) {
    html body > *,
    .jn-nav-glider,
    .jn-apple-status,
    dialog,
    dialog::backdrop,
    .bc-library-modal *,
    .jn-coming-overlay,
    .jn-coming-card,
    body.page-copy .bc-sticky-search,
    body.page-copy .bc-sticky-search *,
    button,
    a {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .jn-skeleton-line,
    .jn-skeleton-pills i,
    .jn-skeleton-row,
    .jn-library-skeleton > i::before,
    .jn-library-skeleton > i::after {
        animation: none !important;
    }
}

/*
 * Finale Sidebarregel
 *
 * Der frühere Navigationsgleiter darf den aktiven Menüpunkt weder beim
 * Laden noch nach dem Start von JavaScript ersetzen. Der aktive Zustand
 * wird deshalb immer direkt auf dem Link gezeichnet.
 */
.jn-side-nav .jn-nav-glider,
.premium-nav .jn-nav-glider,
.az-nav.jn-side-nav .jn-nav-glider {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

html body:not([data-theme="night"]) .jn-side-nav a.active,
html body:not([data-theme="night"]) .premium-nav a.active,
html body:not([data-theme="night"]) .az-nav.jn-side-nav a.active,
html body:not([data-theme="night"]) .jn-side-nav.has-jn-glider a.active,
html body:not([data-theme="night"]) .premium-nav.has-jn-glider a.active,
html body:not([data-theme="night"]) .az-nav.jn-side-nav.has-jn-glider a.active,
html body:not([data-theme="night"]) .jn-side-nav a.active:hover,
html body:not([data-theme="night"]) .premium-nav a.active:hover,
html body:not([data-theme="night"]) .az-nav.jn-side-nav a.active:hover,
html body:not([data-theme="night"]) .jn-side-nav a.active:active,
html body:not([data-theme="night"]) .premium-nav a.active:active,
html body:not([data-theme="night"]) .az-nav.jn-side-nav a.active:active {
    background: #e8f2fc !important;
    color: #123b63 !important;
    border-color: transparent !important;
    box-shadow: inset 0 0 0 1px rgba(18, 59, 99, .08) !important;
    filter: none !important;
    transform: none !important;
    transition: none !important;
}

html body:not([data-theme="night"]) .jn-side-nav a.active::before,
html body:not([data-theme="night"]) .premium-nav a.active::before,
html body:not([data-theme="night"]) .az-nav.jn-side-nav a.active::before {
    background-color: #123b63 !important;
    color: #123b63 !important;
}

html body[data-theme="night"] .jn-side-nav a.active,
html body[data-theme="night"] .premium-nav a.active,
html body[data-theme="night"] .az-nav.jn-side-nav a.active,
html body[data-theme="night"] .jn-side-nav.has-jn-glider a.active,
html body[data-theme="night"] .premium-nav.has-jn-glider a.active,
html body[data-theme="night"] .az-nav.jn-side-nav.has-jn-glider a.active,
html body[data-theme="night"] .jn-side-nav a.active:hover,
html body[data-theme="night"] .premium-nav a.active:hover,
html body[data-theme="night"] .az-nav.jn-side-nav a.active:hover,
html body[data-theme="night"] .jn-side-nav a.active:active,
html body[data-theme="night"] .premium-nav a.active:active,
html body[data-theme="night"] .az-nav.jn-side-nav a.active:active {
    background: rgba(74, 128, 178, .24) !important;
    color: #f2f7fc !important;
    border-color: transparent !important;
    box-shadow: inset 0 0 0 1px rgba(139, 190, 237, .10) !important;
    filter: none !important;
    transform: none !important;
    transition: none !important;
}

html body[data-theme="night"] .jn-side-nav a.active::before,
html body[data-theme="night"] .premium-nav a.active::before,
html body[data-theme="night"] .az-nav.jn-side-nav a.active::before {
    background-color: #f2f7fc !important;
    color: #f2f7fc !important;
}

/*
 * Sidebar hover shape
 *
 * Keep every navigation state on the same rounded surface, including pages
 * with older or more specific sidebar rules.
 */
html body .jn-sidebar .jn-side-nav a,
html body .jn-sidebar .premium-nav a,
html body .az-sidebar .az-nav.jn-side-nav a,
html body .jn-sidebar .jn-side-nav a:hover,
html body .jn-sidebar .premium-nav a:hover,
html body .az-sidebar .az-nav.jn-side-nav a:hover,
html body .jn-sidebar .jn-side-nav a:focus-visible,
html body .jn-sidebar .premium-nav a:focus-visible,
html body .az-sidebar .az-nav.jn-side-nav a:focus-visible,
html body .jn-sidebar .jn-side-nav a:active,
html body .jn-sidebar .premium-nav a:active,
html body .az-sidebar .az-nav.jn-side-nav a:active {
    border-radius: 20px !important;
    overflow: hidden !important;
    background-clip: padding-box !important;
}

html body .jn-sidebar .jn-side-nav a.active,
html body .jn-sidebar .premium-nav a.active,
html body .az-sidebar .az-nav.jn-side-nav a.active {
    border-radius: 20px !important;
}
