.app-header-public-host {
    width: 100%;
}

.app-header {
    box-sizing: border-box;
    grid-template-columns: auto minmax(0, 1fr) auto;
    column-gap: 0.75rem;
}

.app-header .app-header-navigation {
    grid-column: 1 / -1;
    grid-row: 2;
    min-width: 0;
    max-width: 100%;
}

.app-header .app-header-nav-links {
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem clamp(0.75rem, 1.2vw, 1.125rem);
    white-space: nowrap;
    font-size: 0.9375rem;
}

.app-header .app-header-nav-links a {
    padding-block: 0.35rem;
}

.app-header > .patent-logo {
    grid-column: 2;
    grid-row: 1;
}

.app-header > .patent-logo img {
    width: 44px;
}

.app-header .app-analysis-mode-label {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: center;
}

.app-header .app-header-account {
    grid-column: 3;
    grid-row: 1;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    min-width: 0;
}

.app-header .app-header-account-actions {
    flex-wrap: wrap;
    gap: 0.4rem;
}

.app-header .app-header-account > div {
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: anywhere;
}

.app-header > .colytika-brand-stack {
    align-self: center;
}

.colytika-brand-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.375rem;
    min-width: 0;
    align-self: start;
}

header.colytika-site-header {
    box-sizing: border-box;
    width: 100%;
    background: #fff;
    color: #183628;
    border-bottom: 1px solid #dbe5df;
    font-family: Arial, sans-serif;
}

.colytika-header-row {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(1.15rem, 1.8vw, 2.5rem);
    padding: 0.5rem clamp(1rem, 3vw, 2.75rem);
}

.colytika-site-header-signed-in .colytika-header-row {
    gap: 0.75rem;
    padding-inline: 1rem;
}

.colytika-site-header-signed-in .colytika-header-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    flex-wrap: wrap;
    gap: 0.25rem clamp(0.65rem, 1vw, 1rem);
}

.colytika-header-actions {
    justify-self: end;
}

.colytika-site-header-signed-in .colytika-header-actions {
    grid-column: 3;
    grid-row: 1;
}

.colytika-site-header-signed-in .colytika-header-seal {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    max-width: 100px;
}

.colytika-header-brand {
    display: block;
    min-width: 0;
    max-width: 100%;
    justify-self: start;
    line-height: 0;
}

.colytika-header-brand img {
    width: 164px;
    max-width: 100%;
    height: auto;
    display: block;
}

.colytika-header-seal {
    display: block;
    width: auto;
    max-width: 136px;
    max-height: 32px;
    justify-self: end;
}

header.colytika-site-header nav {
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
    gap: clamp(0.6rem, 0.73vw, 1.05rem);
    width: auto;
    max-width: none;
    padding: 0;
    margin: 0;
}

.colytika-site-header a:not(.colytika-header-brand) {
    padding-block: 0.6rem;
    color: #164d32;
    font-size: 0.94rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.colytika-site-header a.colytika-workspaces-link,
.app-header a.colytika-workspaces-link,
.colytika-article-workspaces a.colytika-workspaces-link {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.45rem 0.7rem;
    border-radius: 6px;
    border: 1px solid #164d32;
    background: #fff;
    color: #164d32;
    font: 700 0.9rem Arial, sans-serif;
    text-decoration: none;
    white-space: nowrap;
}

a.colytika-workspaces-link:hover {
    background: #f3f8f5;
    text-decoration: underline;
}

a.colytika-workspaces-link:focus-visible {
    outline: 2px solid #31664b;
    outline-offset: 3px;
}

.colytika-article-workspaces {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
}

.colytika-site-header a:hover {
    text-decoration: underline;
    text-underline-offset: 0.22em;
}

.colytika-site-header :is(a, summary):focus-visible {
    outline: 2px solid #31664b;
    outline-offset: 3px;
}

.colytika-site-header a.colytika-featured-link {
    border: 1px solid #d9afaf;
    border-radius: 5px;
    padding: 0.48rem 0.375rem;
    background: #fff8f8;
}

.colytika-site-header-signed-in .colytika-header-nav a {
    font-size: 0.875rem;
}

.colytika-site-header-signed-in .colytika-header-nav .colytika-featured-link {
    padding-inline: 0.25rem;
}

.colytika-site-header a.colytika-featured-link:is(:hover, :focus-visible) {
    border-color: #b67d81;
    background: #faeeee;
    text-decoration: underline;
}

.colytika-site-header a.colytika-featured-link:focus-visible {
    outline-color: #884e55;
    outline-offset: 2px;
}

.colytika-site-header a.colytika-featured-link[aria-current="page"] {
    border-color: #a46c72;
    background: #f5e7e8;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.22em;
}

.colytika-header-menu {
    display: none;
}

@media (min-width: 1231px) and (max-width: 1420px) {
    .colytika-header-row { gap: 0.75rem; padding-inline: 1rem; }
    header.colytika-site-header nav { gap: 0.4rem; }
    .colytika-site-header a:not(.colytika-header-brand) { font-size: 0.88rem; }
    .colytika-site-header a.colytika-featured-link { padding-inline: 0.25rem; }
}

@media (max-width: 1230px) {
    .colytika-site-header-signed-in .colytika-header-row {
        grid-template-columns: auto minmax(0, 1fr) auto;
        column-gap: 0.65rem;
        row-gap: 0;
    }

    .colytika-site-header-signed-in .colytika-header-seal {
        grid-column: 3;
        grid-row: 2;
        justify-self: end;
    }

    .colytika-site-header-signed-in .colytika-header-menu {
        grid-column: 1;
        grid-row: 2;
        justify-self: start;
    }

    header.colytika-site-header-signed-in .colytika-header-nav { display: none; }
}

@media (max-width: 1230px) {
    .colytika-header-row {
        grid-template-columns: minmax(0, 1fr) auto auto;
        column-gap: 0.75rem;
        row-gap: 0;
    }

    .colytika-header-brand img { width: 145px; }
    .colytika-header-seal { max-width: 104px; max-height: 27px; }
    header.colytika-site-header .colytika-header-nav { display: none; }

    .colytika-header-menu { display: block; }

}

@media (max-width: 1280px) {
    .app-header { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .app-header .colytika-header-brand img { width: min(140px, 100%); }
    .app-header .app-header-account { grid-column: 2; }
    .app-header > .patent-logo {
        grid-column: 2;
        grid-row: 2;
        justify-self: end;
        pointer-events: none;
    }
    .app-header .app-header-navigation {
        align-items: flex-start;
        position: relative;
    }
    .app-header .app-header-nav-links { display: none; }
    .app-header .colytika-header-menu { display: block; }
}

@media (max-width: 900px) {
    .app-header > .colytika-brand-stack { align-self: start; }

    .app-header .app-header-account {
        flex-direction: column;
        align-items: flex-end;
        gap: 0.375rem;
    }
}

@media (max-width: 520px) {
    .app-header {
        grid-template-columns: minmax(0, 1fr) minmax(0, min(13.25rem, 58%));
        padding-inline: 0.75rem !important;
    }
    .app-header .app-header-account vaadin-button { font-size: 0.875rem; }
    .app-header .app-header-account > div {
        width: 100% !important;
        padding: 0.375rem 0.5rem !important;
        font-size: 0.75rem !important;
    }
    .app-header .patent-logo img { width: 42px; }
}

@media (max-width: 360px) {
    .app-header { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1370px) {
    .colytika-header-menu summary {
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.42em;
        min-height: 44px;
        padding-inline: 0.65rem;
        border: 1px solid #98b8a5;
        border-radius: 6px;
        color: #164d32;
        font-size: 0.9rem;
        font-weight: 700;
        cursor: pointer;
        list-style: none;
    }

    .colytika-header-menu summary::-webkit-details-marker { display: none; }
    .colytika-header-menu summary::after { content: '+'; }
    .colytika-header-menu[open] summary::after { content: '−'; }

    .colytika-header-menu nav {
        display: none;
    }

    header.colytika-site-header .colytika-header-menu[open] nav,
    .app-header .colytika-header-menu[open] nav {
        position: absolute;
        z-index: 3;
        inset-inline: 0;
        top: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.4rem 1rem 0.6rem;
        border-block: 1px solid #dbe5df;
        background: #fff;
        box-shadow: 0 5px 12px #18362818;
        max-height: min(70vh, calc(100dvh - 5rem));
        overflow-y: auto;
    }

    .colytika-header-row { position: relative; }
    .colytika-header-menu nav a {
        min-height: 44px;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        color: #164d32;
        text-decoration: none;
        font-size: 0.94rem;
        font-weight: 700;
    }
    .app-header .colytika-header-menu nav a { padding-inline: 0.625rem; }

    .colytika-header-menu a.colytika-featured-link {
        padding-inline: 0.625rem;
        border-width: 0;
        border-inline-start-width: 2px;
        border-radius: 0 5px 5px 0;
        background: transparent;
    }
}
