/* Shared navigation: predictable proportions at every viewport. */
.ff-shell { isolation: isolate; box-shadow: 0 2px 9px #123d4d06; }
.ff-shell .ff-shell-top { grid-template-columns: minmax(175px, 1fr) auto auto; gap: 12px; }
.ff-shell .ff-shell-brand { max-width: 100%; }
.ff-shell .ff-shell-brand strong { overflow: hidden; text-overflow: ellipsis; }
.ff-shell :is(.ff-shell-status > span, .ff-shell-status > a, .ff-shell-status > button, .ff-shell-language, .ff-shell-easy, .ff-shell-account, .ff-shell-tier, .ff-shell-icon) { border-radius: 3px; font-size: 13px; }
.ff-shell .ff-shell-status { gap: 5px; }
.ff-shell .ff-shell-status > .ff-source-badge { gap: 8px; height: 32px; padding: 0 10px; border: 1px solid #dce7e9; border-radius: 3px; background: #f3f7f8; color: #50666f; line-height: 1; text-decoration: none; }
.ff-shell .ff-source-badge > i { font-size: 13px; line-height: 1; color: var(--cadet-dark, #0f7480); }
.ff-shell .ff-source-badge > span { font-size: 13px; font-weight: 600; line-height: 1; }
.ff-shell .ff-source-badge > strong { display: inline-flex; align-items: center; height: auto; min-height: 16px; padding-left: 9px; border-left: 1px solid #ccdcdf; color: var(--cadet-deep, #082f49); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }
.ff-shell .ff-shell-status > .ff-source-badge:hover { border-color: #b5ced3; background: #eaf2f4; color: var(--cadet-deep, #082f49); }
.ff-shell .ff-shell-language select { width: 47px; }
.ff-shell .ff-shell-beta { height: 32px; padding-inline: 9px; font-size: 12px; }
.ff-shell .ff-shell-account { color: var(--cadet-deep, #082f49); }
.ff-shell .ff-shell-actions > a[href="/login.php"] { border-color: var(--cadet-deep, #082f49); background: var(--cadet-deep, #082f49); color: #fff; }
.ff-shell .ff-shell-actions > a[href="/login.php"] i { color: inherit; }
.ff-shell .ff-shell-nav { gap: 3px; }
.ff-shell .ff-shell-menu-trigger { font-size: 14px; font-weight: 700; }
.ff-shell .ff-shell-dropdown { width: 330px; max-height: calc(100dvh - 108px); overflow-y: auto; padding: 5px; border-color: #c7d9dc; border-radius: 3px; box-shadow: 0 12px 28px #092f4921; }
.ff-shell .ff-shell-dropdown a { border-radius: 2px; }
.ff-shell .ff-shell-dropdown a[aria-current="page"] { background: var(--cadet-soft, #ddf3f4); }
.ff-shell .ff-shell-dropdown small { font-size: 12px; line-height: 1.45; white-space: normal; overflow: visible; }
.ff-shell .ff-shell-product-menu .ff-shell-dropdown { right: 0; left: auto; }
.ff-shell :is(a,button,select):focus-visible { outline: 2px solid var(--cadet, #159aa6); outline-offset: 2px; }
.ff-about-dialog :is(a,button):focus-visible { outline: 3px solid var(--cadet, #159aa6); outline-offset: 2px; }
.ff-about-footer a { color: var(--cadet-dark, #0f7480); font-weight: 700; line-height: 1.5; text-underline-offset: 3px; }
.ff-footer { background: #f7fafa; border-top-color: #dce6e8; }
.ff-footer .ff-footer-inner { max-width: 1248px; grid-template-columns: 1.3fr 1fr 1.1fr 1.1fr 1fr; gap: 28px; padding: 44px 32px 34px; }
.ff-footer h2 { font-size: 12px; letter-spacing: .06em; }
.ff-footer a { font-size: 14px; line-height: 1.55; }
.ff-footer p { font-size: 13px; line-height: 1.65; }
.ff-footer .ff-footer-brand img { width: 39px; height: 39px; }
.ff-footer .ff-footer-brand strong { font-size: 22px; }
.ff-footer .ff-footer-brand small { font-size: 9px; }
.ff-footer .ff-footer-base { min-height: 45px; padding-inline: max(32px, calc((100% - 1184px) / 2)); font-size: 12px; background: #edf3f4; }
.feature-strip > a { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 7px 11px; border: 1px solid var(--line, #d7e1e2); border-radius: 3px; color: var(--cadet-deep, #082f49); font-size: 14px; font-weight: 700; text-decoration: none; }
.feature-strip > a:hover { background: var(--cadet-soft, #ddf3f4); border-color: var(--cadet, #159aa6); }
@media (max-width: 1150px) {
    .ff-shell .ff-shell-top { grid-template-columns: minmax(150px, 1fr) auto; }
    .ff-shell .ff-shell-status { display: none; }
    .ff-shell .ff-shell-actions { gap: 5px; }
    .ff-footer .ff-footer-inner { grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; }
}
@media (max-width: 760px) {
    .ff-shell .ff-shell-top { grid-template-columns: minmax(0, 1fr) auto; padding-inline: 10px; gap: 8px; }
    .ff-shell .ff-shell-brand { gap: 6px; }
    .ff-shell .ff-shell-brand strong { font-size: 18px; }
    .ff-shell .ff-shell-brand img { width: 31px; height: 34px; }
    .ff-shell .ff-shell-nav { justify-content: space-between; gap: 0; padding-inline: 6px; }
    .ff-shell :is(.ff-shell-home,.ff-shell-direct,.ff-shell-help,.ff-shell-menu-trigger) { padding-inline: 10px; min-width: 38px; font-size: 17px; }
    .ff-shell .ff-shell-nav-spacer { display: none; }
    .ff-shell .ff-shell-dropdown, .ff-shell .ff-shell-product-menu .ff-shell-dropdown { position: fixed; left: 6px; right: 6px; top: var(--ff-shell-height, 98px); width: auto; max-height: calc(100dvh - 106px); }
    .ff-shell .ff-shell-easy { display: none; }
    .ff-footer .ff-footer-inner { grid-template-columns: 1fr 1fr; gap: 27px 20px; padding: 32px 20px; }
    .ff-footer .ff-footer-base { padding: 12px 20px; }
    .ff-footer .ff-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
    .ff-shell .ff-shell-actions { gap: 4px; }
    .ff-shell .ff-shell-about-button { display: none; }
    .ff-shell .ff-shell-beta { padding-inline: 7px; gap: 5px; }
    .ff-shell .ff-shell-language { padding-inline: 5px; }
    .ff-shell .ff-shell-language select { width: 42px; }
    .ff-shell .ff-shell-actions > .ff-shell-account { width: 32px; min-width: 32px; padding: 0; }
    .ff-shell .ff-shell-brand strong { font-size: 17px; }
    .ff-shell .ff-shell-brand img { width: 27px; }
    .ff-shell :is(.ff-shell-home,.ff-shell-direct,.ff-shell-help,.ff-shell-menu-trigger) { min-width: 32px; width: 36px; padding-inline: 5px; }
}
@media (prefers-reduced-motion: reduce) {
    .ff-shell .ff-shell-menu-trigger > i:last-child { transition: none; }
}
