:root {
    --linknote-header-height: 68px;
    --linknote-header-bg: #fff;
    --linknote-header-text: #202124;
    --linknote-header-muted: #777;
    --linknote-header-border: #e7e7e7;
    --linknote-header-shadow: 0 4px 18px rgba(0,0,0,.06);
    --linknote-header-radius: 12px;
}

.linknote-global-header,
.linknote-global-header *,
.linknote-global-header *::before,
.linknote-global-header *::after {
    box-sizing: border-box;
}

.linknote-global-header {
    position: relative;
    z-index: 9999;
    width: 100%;
    margin: 0;
    padding: 0;
    background: var(--linknote-header-bg);
    border: 0;
    border-bottom: 1px solid var(--linknote-header-border);
    color: var(--linknote-header-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.4;
    text-align: left;
}

.linknote-global-header a,
.linknote-global-header button,
.linknote-global-header ul,
.linknote-global-header li,
.linknote-global-header img,
.linknote-global-header span,
.linknote-global-header div,
.linknote-global-header nav {
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
    border: 0;
    box-shadow: none;
    text-transform: none;
    letter-spacing: normal;
}

.linknote-global-header a,
.linknote-global-header button {
    font: inherit;
}

.linknote-global-header__inner {
    min-height: var(--linknote-header-height);
    width: min(1440px, 100%);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.linknote-global-header__brand-wrap {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.linknote-global-header__brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none !important;
    color: inherit !important;
}

.linknote-global-header__logo {
    display: block;
    width: auto;
    max-width: 180px;
    max-height: 38px;
}

.linknote-global-header__logo-text {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -.02em;
}

.linknote-global-header__section {
    margin-left: 14px !important;
    padding-left: 14px !important;
    border-left: 1px solid var(--linknote-header-border) !important;
    color: var(--linknote-header-muted);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
}

.linknote-global-header__menu-wrap {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.linknote-global-nav__list,
.linknote-global-nav__submenu {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.linknote-global-nav__list {
    display: flex;
    align-items: center;
    gap: 6px;
}

.linknote-global-nav__item {
    position: relative;
    margin: 0 !important;
}

.linknote-global-nav__item::before,
.linknote-global-nav__item::after,
.linknote-global-nav__submenu li::before,
.linknote-global-nav__submenu li::after {
    content: none !important;
}

.linknote-global-nav__item > a,
.linknote-global-nav__parent-row > a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 14px !important;
    border-radius: 10px;
    color: var(--linknote-header-text) !important;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.linknote-global-nav__item > a:hover,
.linknote-global-nav__parent-row > a:hover,
.linknote-global-nav__item > a:focus-visible,
.linknote-global-nav__parent-row > a:focus-visible {
    background: #f6f6f6;
    outline: none;
}

.linknote-global-nav__parent-row {
    display: flex;
    align-items: center;
}

.linknote-global-nav__submenu-toggle {
    width: 28px;
    height: 42px;
    margin-left: -10px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--linknote-header-muted) !important;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

.linknote-global-nav__submenu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 190px;
    padding: 8px !important;
    border: 1px solid var(--linknote-header-border) !important;
    border-radius: var(--linknote-header-radius);
    background: #fff;
    box-shadow: var(--linknote-header-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

.linknote-global-nav__submenu a {
    display: block;
    padding: 10px 12px !important;
    border-radius: 8px;
    color: var(--linknote-header-text) !important;
    text-decoration: none !important;
    font-size: 14px;
    line-height: 1.4;
    white-space: nowrap;
}

.linknote-global-nav__submenu a:hover,
.linknote-global-nav__submenu a:focus-visible {
    background: #f6f6f6;
    outline: none;
}

@media (hover:hover) and (pointer:fine) {
    .linknote-global-nav__item--has-submenu:hover > .linknote-global-nav__submenu,
    .linknote-global-nav__item--has-submenu:focus-within > .linknote-global-nav__submenu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.linknote-global-nav__item--submenu-open > .linknote-global-nav__submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.linknote-global-user {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.linknote-global-user a {
    text-decoration: none !important;
}

.linknote-global-user__menu {
    position: relative;
    padding: 8px 0;
}

.linknote-global-user__profile {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 4px 8px !important;
    border-radius: 12px;
    color: var(--linknote-header-text) !important;
}

.linknote-global-user__profile:hover,
.linknote-global-user__profile:focus-visible {
    background: #f6f6f6;
    outline: none;
}

.linknote-global-user__avatar {
    display: block;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

.linknote-global-user__identity {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    line-height: 1.15;
}

.linknote-global-user__name {
    display: block;
    max-width: 180px;
    overflow: hidden;
    color: var(--linknote-header-text);
    font-size: 14px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.linknote-global-user__username {
    display: block;
    max-width: 180px;
    margin-top: 3px !important;
    overflow: hidden;
    color: var(--linknote-header-muted);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.linknote-global-user__dropdown {
    position: absolute;
    top: calc(100% - 2px);
    right: 0;
    min-width: 150px;
    padding: 8px !important;
    border: 1px solid var(--linknote-header-border) !important;
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--linknote-header-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

.linknote-global-user__menu:hover .linknote-global-user__dropdown,
.linknote-global-user__menu:focus-within .linknote-global-user__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.linknote-global-user__logout {
    display: block;
    padding: 10px 12px !important;
    border-radius: 8px;
    color: #555 !important;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
}

.linknote-global-user__logout:hover,
.linknote-global-user__logout:focus-visible {
    background: #f5f5f5;
    color: #b42318 !important;
    outline: none;
}

.linknote-global-user__login,
.linknote-global-user__register {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px !important;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
}

.linknote-global-user__login {
    color: var(--linknote-header-text) !important;
}

.linknote-global-user__register {
    background: #72a99f !important;
    color: #fff !important;
}

.linknote-global-user__register:hover,
.linknote-global-user__register:focus-visible {
    background: #63998f !important;
    color: #fff !important;
    outline: none !important;
}

.linknote-global-header__toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 9px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--linknote-header-text) !important;
    cursor: pointer;
}

.linknote-global-header__toggle span:not(.screen-reader-text) {
    display: block;
    height: 2px;
    margin: 5px 0 !important;
    background: currentColor;
}

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

@media (max-width: 900px) {
    .linknote-global-header__inner {
        min-height: 60px;
        padding: 0 16px;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 0;
    }

    .linknote-global-header__logo {
        max-width: 145px;
        max-height: 32px;
    }

    .linknote-global-header__logo-text {
        font-size: 23px;
    }

    .linknote-global-header__section {
        margin-left: 10px !important;
        padding-left: 10px !important;
        font-size: 13px;
    }

    .linknote-global-header__toggle {
        display: block;
    }

    .linknote-global-header__menu-wrap {
        display: none;
        flex: 0 0 100%;
        width: 100%;
        padding: 10px 0 18px;
        border-top: 1px solid var(--linknote-header-border);
    }

    .linknote-global-header--open .linknote-global-header__menu-wrap {
        display: block;
    }

    .linknote-global-nav__list {
        display: block;
    }

    .linknote-global-nav__item {
        border-bottom: 1px solid #f1f1f1;
    }

    .linknote-global-nav__parent-row {
        justify-content: space-between;
    }

    .linknote-global-nav__item > a,
    .linknote-global-nav__parent-row > a {
        min-height: 48px;
        padding: 0 4px !important;
        flex: 1;
    }

    .linknote-global-nav__submenu-toggle {
        width: 46px;
        min-width: 46px;
        margin: 0 !important;
    }

    .linknote-global-nav__submenu {
        position: static;
        display: none;
        min-width: 0;
        padding: 0 0 8px 12px !important;
        border: 0 !important;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .linknote-global-nav__item--submenu-open > .linknote-global-nav__submenu {
        display: block;
    }

    .linknote-global-user {
        margin-top: 14px;
        justify-content: flex-start;
    }

    .linknote-global-user__menu {
        width: 100%;
        padding: 0;
    }

    .linknote-global-user__dropdown {
        position: static;
        min-width: 0;
        margin-top: 8px !important;
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
        box-shadow: none;
    }

    .linknote-global-user__logout {
        text-align: left;
    }
}

/* v1.1.1: Ultimate Member系テーマによるユーザー表示の干渉を強制的にリセット */
.linknote-global-header .linknote-global-user__menu {
    position: relative !important;
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 8px 0 !important;
    float: none !important;
    line-height: 1 !important;
}

.linknote-global-header .linknote-global-user__profile {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 9px !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 4px 8px !important;
    float: none !important;
    line-height: 1 !important;
    text-align: left !important;
    white-space: normal !important;
}

.linknote-global-header .linknote-global-user__identity {
    display: flex !important;
    flex: 0 1 auto !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 0 !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    line-height: 1.15 !important;
    text-align: left !important;
}

.linknote-global-header .linknote-global-user__name,
.linknote-global-header .linknote-global-user__username {
    position: static !important;
    display: block !important;
    width: auto !important;
    max-width: 180px !important;
    height: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
    float: none !important;
    clear: none !important;
    border: 0 !important;
    background: transparent !important;
    text-align: left !important;
    text-indent: 0 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    white-space: nowrap !important;
}

.linknote-global-header .linknote-global-user__name {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    font-size: 14px !important;
    font-weight: 650 !important;
    line-height: 1.15 !important;
}

.linknote-global-header .linknote-global-user__username {
    margin-top: 3px !important;
    margin-bottom: 0 !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    line-height: 1.15 !important;
}

.linknote-global-header .linknote-global-user__dropdown {
    top: calc(100% - 2px) !important;
    right: 0 !important;
    left: auto !important;
    width: auto !important;
    min-width: 126px !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 6px !important;
    float: none !important;
    text-align: left !important;
}

.linknote-global-header .linknote-global-user__logout {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    width: 100% !important;
    min-height: 30px !important;
    margin: 0 !important;
    padding: 6px 8px !important;
    float: none !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    text-align: left !important;
    white-space: nowrap !important;
}

.linknote-global-header .linknote-global-user__logout-icon {
    display: block !important;
    flex: 0 0 auto !important;
    width: 14px !important;
    height: 14px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.linknote-global-header .linknote-global-user__logout span {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
    font: inherit !important;
    line-height: 1 !important;
}

/* ロゴと現在地ラベルの間隔を少し詰める */
.linknote-global-header .linknote-global-header__section {
    margin-left: 8px !important;
    padding-left: 8px !important;
}

@media (max-width: 900px) {
    .linknote-global-header .linknote-global-header__section {
        margin-left: 7px !important;
        padding-left: 7px !important;
    }
}

/* v1.1.2: テーマ干渉を避ける最終上書き */
.linknote-global-header .linknote-global-header__brand-wrap {
    gap: 0 !important;
    column-gap: 0 !important;
}

.linknote-global-header .linknote-global-header__brand-wrap > .linknote-global-header__brand + .linknote-global-header__section {
    margin: 0 0 0 5px !important;
    padding: 0 0 0 6px !important;
}

.linknote-global-header .linknote-global-user__dropdown > a.linknote-global-user__logout,
.linknote-global-header .linknote-global-user__dropdown > a.linknote-global-user__logout:link,
.linknote-global-header .linknote-global-user__dropdown > a.linknote-global-user__logout:visited {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 4px !important;
    min-height: 0 !important;
    width: auto !important;
    margin: 0 !important;
    padding: 4px 6px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif !important;
    font-size: 10px !important;
    font-weight: 500 !important;
    line-height: 1.1 !important;
    letter-spacing: 0 !important;
    text-decoration: none !important;
}

.linknote-global-header .linknote-global-user__dropdown > a.linknote-global-user__logout > span {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: inherit !important;
    font-size: 10px !important;
    font-weight: 500 !important;
    line-height: 1.1 !important;
    letter-spacing: 0 !important;
}

.linknote-global-header .linknote-global-user__dropdown > a.linknote-global-user__logout > .linknote-global-user__logout-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 12px !important;
    height: 12px !important;
    flex: 0 0 12px !important;
    overflow: visible !important;
    color: currentColor !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 12px !important;
    transform: translateY(-.5px) !important;
}

.linknote-global-header .linknote-global-user__dropdown {
    min-width: 92px !important;
    padding: 4px !important;
}

@media (max-width: 900px) {
    .linknote-global-header .linknote-global-header__brand-wrap > .linknote-global-header__brand + .linknote-global-header__section {
        margin-left: 4px !important;
        padding-left: 5px !important;
    }
}

/* v1.1.3: 現在地ラベルの文字数に左右されず、共通メニューの開始位置を統一 */
@media (min-width: 901px) {
    .linknote-global-header .linknote-global-header__brand-wrap {
        flex: 0 0 220px !important;
        width: 220px !important;
        min-width: 220px !important;
        max-width: 220px !important;
    }
}

@media (max-width: 900px) {
    .linknote-global-header .linknote-global-header__brand-wrap {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
    }
}

/* v1.2.0: configurable logo mark + text */
.linknote-global-header__brand {
    gap: 7px !important;
}

.linknote-global-header__logo-mark {
    display: block !important;
    flex: 0 0 auto !important;
    width: auto !important;
    height: 32px !important;
    max-width: 42px !important;
    max-height: 32px !important;
    object-fit: contain !important;
}

.linknote-global-header__logo-text {
    display: inline-block !important;
    white-space: nowrap !important;
}

@media (max-width: 782px) {
    .linknote-global-header__logo-mark {
        height: 28px !important;
        max-width: 38px !important;
        max-height: 28px !important;
    }
}


/* v1.2.2: ロゴマーク追加後も共通メニューとの余白を確保 */
@media (min-width: 901px) {
    .linknote-global-header .linknote-global-header__brand-wrap {
        flex-basis: 220px !important;
        width: 220px !important;
        min-width: 220px !important;
        max-width: 220px !important;
    }
}

/* v1.3.0: 共通通知ベル */
.linknote-global-header .linknote-global-user__notifications,
.linknote-global-header .linknote-global-user__notifications:link,
.linknote-global-header .linknote-global-user__notifications:visited {
    position: relative !important;
    display: inline-flex !important;
    flex: 0 0 36px !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    margin: 0 4px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: transparent !important;
    color: #676c72 !important;
    box-shadow: none !important;
    text-decoration: none !important;
    line-height: 1 !important;
}

.linknote-global-header .linknote-global-user__notifications:hover,
.linknote-global-header .linknote-global-user__notifications:focus-visible {
    background: #f3f5f6 !important;
    color: #202326 !important;
    outline: none !important;
}

.linknote-global-header .linknote-global-user__notifications-icon {
    display: block !important;
    width: 19px !important;
    height: 19px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.8 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

@media (max-width: 900px) {
    .linknote-global-header .linknote-global-user__notifications {
        margin: 0 8px 8px 0 !important;
    }
}


/* v1.3.1: unread notification badge */
.linknote-global-header .linknote-global-user__notifications {
    position: relative !important;
    overflow: visible !important;
}

.linknote-global-header .linknote-global-user__notification-count {
    position: absolute !important;
    top: -5px !important;
    right: -7px !important;
    z-index: 3 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 16px !important;
    height: 16px !important;
    padding: 0 4px !important;
    border: 2px solid #fff !important;
    border-radius: 999px !important;
    background: #ef4444 !important;
    color: #fff !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    box-sizing: border-box !important;
    pointer-events: none !important;
}

.linknote-global-header .linknote-global-user__notification-count.is-hidden {
    display: none !important;
}


/* v1.3.2: 0件バッジをテーマCSSから確実に保護 */
.linknote-global-header .linknote-global-user__notification-count[hidden],
.linknote-global-header .linknote-global-user__notification-count.is-hidden {
    display: none !important;
    visibility: hidden !important;
}


/* v1.4.0: notification + Better Messages counters */
.linknote-global-header .linknote-global-user__messages,
.linknote-global-header .linknote-global-user__messages:link,
.linknote-global-header .linknote-global-user__messages:visited {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 32px !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: transparent !important;
    color: #50545a !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

.linknote-global-header .linknote-global-user__messages:hover,
.linknote-global-header .linknote-global-user__messages:focus-visible {
    background: #f3f5f6 !important;
    color: #1f2328 !important;
}

.linknote-global-header .linknote-global-user__messages-icon {
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.7 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

.linknote-global-header .linknote-global-user__message-count,
.linknote-global-header .linknote-global-user__notification-count {
    position: absolute !important;
    top: -3px !important;
    right: -4px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 16px !important;
    height: 16px !important;
    padding: 0 4px !important;
    border: 2px solid #fff !important;
    border-radius: 999px !important;
    background: #ee5865 !important;
    color: #fff !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    line-height: 12px !important;
    text-align: center !important;
    box-sizing: border-box !important;
    z-index: 2 !important;
}

.linknote-global-header .linknote-global-user__message-count[hidden],
.linknote-global-header .linknote-global-user__message-count.is-hidden,
.linknote-global-header .linknote-global-user__notification-count[hidden],
.linknote-global-header .linknote-global-user__notification-count.is-hidden {
    display: none !important;
}


/* v1.4.5: mobile quick actions + calmer registration button / menu alignment */
.linknote-global-header__mobile-actions {
    display: none;
}

@media (max-width: 900px) {
    .linknote-global-header__mobile-actions {
        display: inline-flex;
        flex: 0 0 auto;
        align-items: center;
        gap: 2px;
        margin-left: auto !important;
        margin-right: 2px !important;
    }

    .linknote-global-header__mobile-actions .linknote-global-user__notifications,
    .linknote-global-header__mobile-actions .linknote-global-user__messages {
        margin: 0 !important;
    }

    /* The same links remain in the expanded desktop-oriented user area. On
       mobile the top-row copies are the single visible quick actions. */
    .linknote-global-header__menu-wrap .linknote-global-user > .linknote-global-user__notifications,
    .linknote-global-header__menu-wrap .linknote-global-user > .linknote-global-user__messages {
        display: none !important;
    }

    /* Keep Social / Works close to their disclosure arrow instead of leaving
       a large empty strip between the label and the caret. */
    .linknote-global-nav__parent-row {
        justify-content: flex-end !important;
    }

    .linknote-global-nav__parent-row > a {
        flex: 0 0 auto !important;
        margin-left: auto !important;
        padding-left: 10px !important;
        padding-right: 2px !important;
    }

    .linknote-global-nav__submenu-toggle {
        width: 36px !important;
        min-width: 36px !important;
    }
}


/* v1.4.6: brighter registration CTA + fully right-aligned mobile navigation. */
@media (max-width: 900px) {
    /* Store has no submenu yet. Reserve the same caret-width space as Social / Works
       so all three top-level labels line up without adding a fake control. */
    .linknote-global-nav__item:not(.linknote-global-nav__item--has-submenu) > a {
        display: flex !important;
        width: fit-content !important;
        min-width: 0 !important;
        flex: 0 0 auto !important;
        margin-left: auto !important;
        padding-left: 10px !important;
        padding-right: 38px !important;
        justify-content: flex-end !important;
        text-align: right !important;
    }

    /* Child destinations visually follow their right-aligned parent labels. */
    .linknote-global-nav__submenu {
        padding: 0 36px 8px 12px !important;
        text-align: right !important;
    }

    .linknote-global-nav__submenu li,
    .linknote-global-nav__submenu a {
        text-align: right !important;
    }
}

/* v1.4.8: stable mobile three-section navigation + child panel */
@media (max-width: 900px) {
    /* LinKnote logo remains a normal link on desktop and opens the menu on mobile. */
    .linknote-global-header__brand {
        cursor: pointer !important;
        min-height: 44px;
    }

    /* The list is the mobile grid. li uses display:contents so the parent rows
       occupy row 1 while whichever submenu is open occupies row 2 at full width. */
    .linknote-global-nav__list {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: auto auto;
        gap: 0 !important;
        width: 100%;
        align-items: stretch;
        border-bottom: 1px solid #ededed;
    }

    .linknote-global-nav__item {
        display: contents !important;
    }

    .linknote-global-nav__item:nth-child(1) > .linknote-global-nav__parent-row {
        grid-column: 1;
        grid-row: 1;
    }

    .linknote-global-nav__item:nth-child(2) > .linknote-global-nav__parent-row {
        grid-column: 2;
        grid-row: 1;
    }

    .linknote-global-nav__item:nth-child(3) > .linknote-global-nav__parent-row {
        grid-column: 3;
        grid-row: 1;
    }

    .linknote-global-nav__parent-row {
        min-width: 0;
        min-height: 48px;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0;
        border-bottom: 0 !important;
    }

    .linknote-global-nav__parent-row > a {
        display: inline-flex !important;
        width: auto !important;
        min-width: 0 !important;
        min-height: 48px !important;
        flex: 0 1 auto !important;
        margin: 0 !important;
        padding: 0 2px 0 8px !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        font-size: 14px;
    }

    .linknote-global-nav__submenu-toggle {
        display: inline-flex !important;
        flex: 0 0 30px !important;
        width: 30px !important;
        min-width: 30px !important;
        height: 48px !important;
        margin: 0 !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 14px;
    }

    /* Child menus are true full-width row-2 panels; no 300% width/offset hack. */
    .linknote-global-nav__submenu {
        grid-column: 1 / -1;
        grid-row: 2;
        position: static !important;
        left: auto !important;
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 8px 0 10px !important;
        border: 0 !important;
        border-top: 1px solid #f2f2f2 !important;
        border-radius: 0 !important;
        background: #fff;
        box-shadow: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        text-align: left !important;
    }

    .linknote-global-nav__item:not(.linknote-global-nav__item--submenu-open) > .linknote-global-nav__submenu {
        display: none !important;
    }

    .linknote-global-nav__item--submenu-open > .linknote-global-nav__submenu {
        display: block !important;
    }

    .linknote-global-nav__item--submenu-open > .linknote-global-nav__parent-row {
        background: #f7f8f8;
    }

    .linknote-global-nav__submenu li,
    .linknote-global-nav__submenu a {
        text-align: left !important;
    }

    .linknote-global-nav__submenu a {
        display: block !important;
        width: 100% !important;
        padding: 11px 12px !important;
    }
}

/* v1.4.12: approachable two-line site labels. Only the section labels change color. */
.linknote-global-header .linknote-global-nav__parent-row > .linknote-global-nav__site-link {
    position: relative;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    text-align: center !important;
    white-space: nowrap;
}

.linknote-global-header .linknote-global-nav__label-ja {
    display: block;
    color: #343A40 !important;
    font-size: 15px;
    font-weight: 500;
    line-height: 18px;
}

.linknote-global-header .linknote-global-nav__label-en {
    display: block;
    color: #8A9299 !important;
    font-size: 10px;
    font-weight: 400;
    line-height: 12px;
}

.linknote-global-header .linknote-global-nav__site-link[aria-current="true"]::after {
    content: "";
    position: absolute;
    bottom: 1px;
    left: 14px;
    right: 14px;
    height: 2px;
    border-radius: 2px;
    background: #6FAF9F;
    pointer-events: none;
}

@media (max-width: 900px) {
    .linknote-global-header .linknote-global-nav__label-ja {
        font-size: 14px;
    }

    .linknote-global-header .linknote-global-nav__site-link[aria-current="true"]::after {
        left: 8px;
        right: 2px;
    }
}

/* v1.4.16: prominent beta feedback CTA; preserve existing navigation behavior. */
.linknote-global-header .linknote-global-nav__item > a.linknote-global-nav__feedback {
    min-height: 44px;
    padding: 8px 14px !important;
    border-radius: 11px;
    background: #C2410C !important;
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center !important;
}
.linknote-global-header .linknote-global-nav__item > a.linknote-global-nav__feedback:hover,
.linknote-global-header .linknote-global-nav__item > a.linknote-global-nav__feedback:focus-visible {
    background: #9A3412 !important;
    color: #fff !important;
}
.linknote-global-header .linknote-global-nav__item > a.linknote-global-nav__feedback:focus-visible {
    outline: 3px solid #9A3412;
    outline-offset: 3px;
}
@media (max-width: 900px) {
    .linknote-global-header .linknote-global-nav__item > a.linknote-global-nav__feedback {
        grid-column: 1 / -1;
        grid-row: 3;
        width: 100% !important;
        margin: 8px 0 !important;
        justify-content: center !important;
        white-space: normal;
    }
}

/* v1.4.17: mobile feedback outside the hidden drawer. */
.linknote-global-header .linknote-global-header__mobile-feedback { display: none; }
@media (max-width: 900px) {
 .linknote-global-header .linknote-global-header__mobile-feedback {
  display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center;
  min-height: 44px; margin: 0 2px 0 auto; padding: 4px 6px; border-radius: 11px;
  background: #C2410C !important; color: #fff !important;
  font-size: 11px; font-weight: 600; line-height: 1.35; text-align: center !important; white-space: nowrap;
 }
 .linknote-global-header .linknote-global-header__mobile-feedback:hover,
 .linknote-global-header .linknote-global-header__mobile-feedback:focus-visible { background: #9A3412 !important; color: #fff !important; }
 .linknote-global-header .linknote-global-header__mobile-feedback:focus-visible { outline: 3px solid #9A3412; outline-offset: 2px; }
 .linknote-global-header__mobile-feedback + .linknote-global-header__mobile-actions { margin-left: 0 !important; }
 .linknote-global-header .linknote-global-nav__item--feedback { display: none; }
}
@media (max-width: 390px) {
 .linknote-global-header__inner:has(> .linknote-global-header__mobile-feedback) { padding-left: 4px; padding-right: 4px; }
 .linknote-global-header .linknote-global-header__mobile-feedback { padding-left: 4px; padding-right: 4px; font-size: 10px; }
}

@media (max-width: 370px) {
 .linknote-global-header__inner:has(> .linknote-global-header__mobile-feedback) { padding-left: 0; padding-right: 0; }
 .linknote-global-header .linknote-global-header__mobile-feedback { padding-left: 1px; padding-right: 1px; margin-right: 0; }
 .linknote-global-header__mobile-feedback + .linknote-global-header__mobile-actions { margin-right: 0 !important; }
}

/* v1.4.19: guest-only mobile authentication disclosure. */
.linknote-global-header .linknote-global-header__guest-auth { display: none; }
@media (max-width: 900px) {
 .linknote-global-header .linknote-global-header__guest-auth { display: block; position: relative; flex: 0 0 auto; margin-left: 2px; }
 .linknote-global-header .linknote-global-header__guest-toggle {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: 4px 6px; margin: 0; border: 1px solid #47655e; border-radius: 9px;
  background: #edf5f2; color: #294b42; font-size: 11px; font-weight: 600; line-height: 1.3; white-space: nowrap;
 }
 .linknote-global-header .linknote-global-header__guest-panel {
  position: absolute; top: calc(100% + 8px); right: 0; width: 160px; padding: 6px;
  background: #fff; border: 1px solid #ccd7d3; border-radius: 10px; box-shadow: 0 5px 20px #0002; z-index: 20;
 }
 .linknote-global-header .linknote-global-header__guest-panel[hidden] { display: none !important; }
 .linknote-global-header .linknote-global-header__guest-panel a {
  display: flex; align-items: center; min-height: 44px; padding: 8px 12px; color: #294b42; font-size: 14px; border-radius: 6px;
 }
 .linknote-global-header .linknote-global-header__guest-panel a:hover { background: #edf5f2; }
 .linknote-global-header .linknote-global-header__guest-toggle:focus-visible,
 .linknote-global-header .linknote-global-header__guest-panel a:focus-visible { outline: 2px solid #294b42; outline-offset: 2px; }
}
@media (max-width: 390px) {
 .linknote-global-header__inner:has(> .linknote-global-header__guest-auth) .linknote-global-header__logo-text { font-size: 21px; }
 .linknote-global-header__inner:has(> .linknote-global-header__guest-auth) .linknote-global-header__brand { gap: 4px !important; }
 .linknote-global-header .linknote-global-header__guest-toggle { padding-left: 4px; padding-right: 4px; }
}

/* v1.4.24: wrap desktop controls within the available width.
   Preserve the shared 900px mobile boundary and every action. */
@media (min-width: 901px) {
    .linknote-global-header__menu-wrap {
        flex-wrap: wrap;
        gap: 8px 16px;
        justify-content: flex-end;
    }
    .linknote-global-header .linknote-global-nav {
        position: relative;
        z-index: 2;
        flex: 0 0 auto;
        margin-right: auto;
    }
}
