/* Shared brand and navigation, independent of Odoo website asset defaults. */
.ik-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    flex-shrink: 0;
    border-bottom: 3px solid #ed1c24;
    background: #fff;
    color: #292929;
}
.ik-nav *, .ik-nav {
    box-sizing: border-box;
}
.ik-nav .ik-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    max-width: 1160px;
    height: 76px;
    min-height: 76px;
    margin: 0 auto;
    padding: 0 24px;
}
.ik-nav .ik-brand {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    line-height: 1;
    transition: transform 0.16s ease;
}
.ik-brand img {
    display: block;
    width: 264px;
    height: 42px;
    max-width: 100%;
    object-fit: contain;
}
.ik-nav .ik-nav-actions {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 4px;
}
.ik-nav .ik-nav-btn {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin: 0;
    border: 0;
    border-radius: 999px;
    padding: 8px 12px;
    background: transparent;
    color: #292929;
    font: 600 14px/1.2 "Segoe UI", system-ui, sans-serif;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}
.ik-nav .ik-nav-btn:hover, .ik-nav .ik-nav-btn[aria-current="page"] {
    background: #f6f5f3;
    color: #a91b0d;
}
.ik-nav .ik-nav-btn-main {
    background: #d62311;
    color: #fff;
}
.ik-nav .ik-nav-btn-main:hover {
    background: #a91b0d;
    color: #fff;
}
.ik-nav a:focus-visible, .ik-nav button:focus-visible {
    outline: 3px solid #ed1c24;
    outline-offset: 2px;
}
.ik-homepage .ik-hero-image, .ik-homepage .ik-feature-img {
    display: block;
    width: 100%;
    height: auto;
    border: 0;
    border-radius: 24px;
    box-shadow: none;
}
.ik-illustration {
    animation: ik-illustration-float 7s ease-in-out infinite;
}
@keyframes ik-illustration-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.ik-install-button {
    border: 0;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.ik-install-help {
    max-width: 640px;
    margin-top: 24px;
    border: 1px solid #e7b3ac;
    border-radius: 16px;
    padding: 24px;
    background: #fff;
}
.ik-install-help[hidden] {
    display: none;
}
.ik-install-help:focus {
    outline: 2px solid #ed1c24;
    outline-offset: 4px;
}
.ik-install-help .ik-install-video-link {
    display: inline-block;
    margin: 16px;
    color: #a91b0d;
    font-weight: 700;
}
.ik-public-heading .ik-install-status {
    text-align: left;
    font-size: 14px;
}
.ik-install-videos > summary {
    font-size: 22px;
}
.ik-install-videos .ik-mobile-grid {
    margin-top: 24px;
}
.ik-homepage .ik-video-container-shorts {
    position: relative;
    width: min(100%, 280px);
    height: auto;
    aspect-ratio: 9 / 16;
    margin-inline: auto;
    padding: 0;
    overflow: hidden;
}
.ik-homepage .ik-video-container-shorts iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.ik-install-dialog {
    max-width: min(480px, calc(100% - 32px));
    border: 1px solid #d9d9d9;
    border-radius: 20px;
    padding: 28px;
    color: #292929;
    font: 16px/1.7 "Segoe UI", system-ui, sans-serif;
}
.ik-install-dialog::backdrop {
    background: rgb(0 0 0 / 25%);
}
.ik-install-dialog a, .ik-install-dialog button {
    display: block;
    margin-top: 20px;
}
.ik-install-dialog a {
    color: #a91b0d;
}
.ik-support-wrap {
    max-width: 720px !important;
}
.ik-support-form {
    display: grid;
    gap: 24px;
}
.ik-support-field {
    display: grid;
    gap: 8px;
}
.ik-support-field label {
    font-weight: 700;
}
.ik-support-field input, .ik-support-field textarea {
    box-sizing: border-box;
    width: 100%;
    border: 1px solid #d9d9d9;
    border-radius: 12px;
    padding: 12px;
    color: #292929;
    background: #fff;
    font: inherit;
}
.ik-support-field textarea {
    resize: vertical;
}
.ik-support-field small {
    color: #616161;
}
.ik-support-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.ik-support-error {
    color: #a91b0d;
    font-size: 14px;
}
.ik-support-success {
    border: 1px solid #d9d9d9;
    border-radius: 20px;
    padding: 32px;
    background: #f6f5f3;
}
.ik-spa-body .ik-app-chat {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
}
.ik-app-chat .ik-chat-page {
    display: flex;
    align-items: stretch;
    flex: 1;
    min-height: 0;
    padding: 24px 24px 0;
    background: #f6f5f3;
}
.ik-app-chat .ik-chat-container {
    height: auto;
    max-width: 1120px;
    min-height: 0;
    border: 1px solid #d9d9d9;
    border-bottom: 0;
    border-radius: 16px 16px 0 0;
    box-shadow: none;
}
.ik-chat-header {
    background: #fff;
}
.ik-chat-header .ik-chat-info {
    align-items: flex-start;
    flex: 1;
}
.ik-chat-header-actions > .ik-btn {
    display: inline-flex;
}
.ik-app-chat .ik-chat-messages {
    min-height: 0;
    background: #fff;
    overscroll-behavior: contain;
}
.ik-app-chat .ik-chat-input-container {
    padding-bottom: max(16px, env(safe-area-inset-bottom));
}
.ik-reading-collapse {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 0.2s ease, opacity 0.2s ease;
}
.ik-reading-collapse > div {
    min-height: 0;
    overflow: hidden;
}
.ik-reading-collapse.ik-reading-visible {
    grid-template-rows: 1fr;
    opacity: 1;
}
.ik-translation-reading, .ik-translation-kana {
    margin-bottom: 6px;
    color: #616161;
    font-size: 14px;
    line-height: 1.5;
}
.ik-reading-unavailable {
    max-width: 240px;
    color: #616161;
    font-size: 12px;
}
.ik-vocab-reading {
    display: block;
    margin-top: 4px;
    color: #616161;
    font-size: 13px;
    font-weight: 400;
}
.ik-translation-overlay {
    transition: opacity 0.16s ease;
}
.ik-translation-overlay.ik-closing {
    opacity: 0;
}
@keyframes ik-lookup-enter {
    from { opacity: 0; }
    to { opacity: 1; }
}
@media (hover: hover) {
    .ik-nav .ik-brand:hover {
        transform: scale(1.03);
    }
}
@media (max-width: 760px) {
    .ik-nav .ik-nav-inner {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 8px;
        height: 112px;
        min-height: 112px;
        padding: 8px 16px;
    }
    .ik-brand img {
        width: 226px;
        height: 36px;
    }
    .ik-nav .ik-nav-actions {
        justify-content: flex-start;
        width: 100%;
        overflow-x: auto;
        scrollbar-width: thin;
    }
    .ik-nav .ik-nav-btn {
        min-height: 36px;
        padding: 8px 10px;
        font-size: 12px;
    }
    .ik-app-chat .ik-chat-page {
        padding: 0;
    }
    .ik-app-chat .ik-chat-container {
        border: 0;
        border-radius: 0;
    }
    .ik-chat-header {
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px 16px;
    }
    .ik-chat-header-actions {
        margin-left: auto;
    }
    .ik-chat-header-actions > .ik-btn {
        display: inline-flex;
        font-size: 12px;
    }
    .ik-chat-header-actions > .ik-btn-premium {
        display: none;
    }
}
@media (prefers-reduced-motion: reduce) {
    .ik-nav .ik-brand, .ik-reading-collapse, .ik-illustration, .ik-translation-overlay {
        animation: none;
        transition: none;
    }
    .ik-nav .ik-brand:hover {
        transform: none;
    }
}

.ik-translation-popup {
    max-width: min(300px, calc(100vw - 32px));
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
}
.ik-translation-popup {
    transform: none;
}
