.lmp-account-controls { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.lmp-account { position: relative; font-family: "DM Sans", system-ui, sans-serif; }
.lmp-account-trigger { display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border: 1px solid transparent; border-radius: 999px; background: transparent; cursor: pointer; transition: all .18s ease; }
.lmp-account-trigger:hover { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.08); }
.lmp-account-avatar { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border: 2px solid #fff; border-radius: 50%; background: linear-gradient(135deg, #a82e33 0%, #751a1e 100%); color: #fff; font-size: 14px; font-weight: 700; line-height: 1; box-shadow: 0 2px 6px rgba(117,26,30,0.25); }
.lmp-account-avatar-large { width: 44px; height: 44px; flex-basis: 44px; font-size: 16px; }
.lmp-account-trigger-details { display: inline-flex; flex-direction: column; text-align: left; line-height: 1.2; }
@media (max-width: 768px) { .lmp-account-trigger-details { display: none !important; } }
.lmp-account-trigger-name { font-size: 13px; font-weight: 700; color: #24211f; }
.lmp-account-trigger-role { font-size: 11px; font-weight: 500; color: #716b65; }
.lmp-account-badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #fbf3f1; color: #8e282c; border: 1px solid #f2deda; width: fit-content; }
.lmp-account-link-title { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.lmp-account-link-title i { font-size: 15px; opacity: 0.85; color: #8e282c; }
.lmp-account-switcher { padding: 8px 10px 8px; border-top: 1px solid #eeeae4; margin-top: 2px; }
.lmp-account-switcher form { margin: 0; }
.lmp-switcher-title { display: flex; align-items: center; gap: 6px; padding: 6px 12px; color: #8a8279; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.lmp-switcher-btn { display: flex !important; align-items: center !important; justify-content: space-between !important; width: 100% !important; box-sizing: border-box !important; padding: 8px 12px !important; border: 0 !important; border-radius: 8px !important; background: transparent; color: #302c29; font: 600 13px/1.3 "DM Sans", system-ui, sans-serif !important; text-align: left !important; cursor: pointer; transition: all 0.15s ease; white-space: nowrap !important; }
.lmp-switcher-btn:hover { background: #fbf5f2; color: #8e282c; }
.lmp-switcher-btn.is-active-context { background: #fbf3f1 !important; color: #8e282c !important; font-weight: 700 !important; }
.lmp-switcher-label { display: inline-flex !important; align-items: center !important; gap: 9px !important; min-width: 0 !important; white-space: nowrap !important; }
.lmp-switcher-label i { font-size: 15px; opacity: 0.85; color: #8e282c; flex-shrink: 0; }
.lmp-switcher-check { color: #8e282c !important; font-size: 16px !important; font-weight: 700 !important; flex-shrink: 0 !important; margin-left: 8px !important; }
.is-active-context { background: #fbf3f1 !important; color: #8e282c !important; font-weight: 700 !important; }
.lmp-account-chevron { width: 7px; height: 7px; margin: -2px 2px 0 2px; border-right: 1.5px solid #3c3935; border-bottom: 1.5px solid #3c3935; transform: rotate(45deg); transition: transform .15s ease; }
.lmp-account-trigger[aria-expanded="true"] .lmp-account-chevron { transform: rotate(-135deg); margin-top: 2px; }
.lmp-account-trigger:focus-visible, .lmp-account-panel a:focus-visible, .lmp-account-panel button:focus-visible, .lmp-guest-login:focus-visible, .lmp-guest-register:focus-visible { outline: 3px solid #af5b53; outline-offset: 3px; }
.lmp-account-panel[hidden] { display: none; }
.lmp-account-panel { position: absolute; z-index: 2100; top: calc(100% + 6px); right: 0; width: 320px; max-width: calc(100vw - 24px); max-height: calc(100vh - 80px); max-height: calc(100dvh - 80px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; box-sizing: border-box; padding: 0; border: 1px solid #e8e2d9; border-radius: 14px; background: #fff; box-shadow: 0 20px 48px rgba(34, 29, 24, .16), 0 4px 12px rgba(0,0,0,.04); color: #292622; animation: lmp-menu-in .16s cubic-bezier(0.16, 1, 0.3, 1); }
.lmp-account-panel::-webkit-scrollbar { width: 5px; }
.lmp-account-panel::-webkit-scrollbar-track { background: transparent; }
.lmp-account-panel::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.15); border-radius: 999px; }
.lmp-account-panel::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, 0.28); }
@keyframes lmp-menu-in { from { opacity: 0; transform: translateY(-6px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (prefers-reduced-motion: reduce) { .lmp-account-panel { animation: none; } }
.lmp-account-identity { position: sticky; top: 0; display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px 14px 12px; border-bottom: 1px solid #eeeae4; background: #fff; border-radius: 13px 13px 0 0; z-index: 5; }
.lmp-account-identity-text { min-width: 0; display: grid; gap: 4px; }
.lmp-account-identity-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; color: #24211f; }
.lmp-account-identity-text span { color: #716b65; font-size: 12px; }
.lmp-account-links { display: grid; gap: 2px; padding: 8px 10px; }
.lmp-account-links a { display: flex; align-items: center; justify-content: space-between; width: 100%; box-sizing: border-box; padding: 9px 12px; border: 0; border-radius: 8px; background: transparent; color: #302c29; font: 500 13.5px/1.3 "DM Sans", system-ui, sans-serif; text-align: left; text-decoration: none; cursor: pointer; transition: all .15s ease; }
.lmp-account-links a:hover { background: #fbf5f2; color: #8e282c; text-decoration: none; }
.lmp-account-links .lmp-account-dashboard { color: #8e282c; background: #fbf3f1; font-weight: 600; }
.lmp-account-links .lmp-account-dashboard:hover { background: #f6e8e5; }
.lmp-account-logout { position: sticky; bottom: 0; margin: 0; padding: 10px; border-top: 1px solid #eeeae4; border-radius: 0 0 13px 13px; background: #ffffff; box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05); z-index: 5; }
.lmp-account-logout button { display: flex; align-items: center; justify-content: space-between; width: 100%; box-sizing: border-box; padding: 10px 12px; border: 0; border-radius: 8px; background: #fdf5f5; color: #8e282c; font: 700 13.5px/1.3 "DM Sans", system-ui, sans-serif; text-align: left; cursor: pointer; transition: all .15s ease; }
.lmp-account-logout button:hover { background: #fbeae9; color: #702025; }
.lmp-guest-login, .lmp-guest-register { display: inline-flex; align-items: center; justify-content: center; padding: 9px 14px; border-radius: 8px; color: #302c29; font: 700 12.5px/1.2 "DM Sans", system-ui, sans-serif; white-space: nowrap; text-decoration: none; transition: all .18s ease; }
.lmp-guest-register { background: #8e282c; color: #fff; box-shadow: 0 2px 6px rgba(142,40,44,0.25); }
.lmp-guest-login:hover { color: #8e282c; background: rgba(142,40,44,0.06); }
.lmp-guest-register:hover { background: #702025; color: #fff; transform: translateY(-1px); }

body.lmp-public-page { padding-top: 0 !important; }
.lmp-account-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 14px clamp(20px, 5vw, 76px); border-bottom: 1px solid #e8e2d9; background: #faf8f3; font: 600 14px/1.5 "DM Sans", system-ui, sans-serif; }
.lmp-account-nav a { color: #504a45; text-decoration: none; }
.lmp-account-nav a:hover, .lmp-account-nav [aria-current] { color: #8e282c; text-decoration: underline; text-underline-offset: 5px; }
.lmp-account-nav a:focus-visible, .lmp-profile-form :focus-visible { outline: 3px solid #af5b53; outline-offset: 3px; }
.lmp-account-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 20px; margin: 28px 0; }
.lmp-account-cards article { position: relative; padding: 24px; border: 1px solid #ebe5dc; border-radius: 14px; background: #ffffff; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03); transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; display: flex; flex-direction: column; }
.lmp-account-cards article:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(142, 40, 44, 0.08); border-color: #e2c8c4; }
.lmp-account-cards article h2 { font-size: 1.05rem; font-weight: 700; color: #2b2825; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.lmp-account-cards article strong { font-size: 2.25rem; font-weight: 800; color: #8e282c; line-height: 1.1; margin: 6px 0 10px; }
.lmp-account-cards article p { color: #6a645d; font-size: 0.9rem; margin-bottom: 18px; flex: 1; }
.lmp-account-cards article a { display: inline-flex; align-items: center; gap: 6px; color: #8e282c; font-weight: 700; font-size: 0.9rem; text-decoration: none; margin-top: auto; }
.lmp-account-cards article a:hover { text-decoration: underline; }
.lmp-account-next { padding: 28px; border: 1px solid #ebe5dc; border-radius: 14px; background: #ffffff; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03); }
.lmp-account-next h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 14px; }
.lmp-account-next-links { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.lmp-account-next-links a, .lmp-account-next-links button { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border: 1px solid #e0d8ce; border-radius: 8px; background: #faf8f5; color: #383430; font-size: 13.5px; font-weight: 600; text-decoration: none; cursor: pointer; transition: all .15s ease; }
.lmp-account-next-links a:hover, .lmp-account-next-links button:hover { background: #8e282c; border-color: #8e282c; color: #fff; text-decoration: none; }
.lmp-account-next form { margin: 0; display: inline-block; }
.lmp-profile-form { display: grid; gap: 8px; max-width: 640px; margin-top: 24px; padding: 24px; border: 1px solid #e9e3da; border-radius: 12px; background: #fffefa; }
.lmp-profile-form label { margin-top: 10px; font-weight: 700; }
.lmp-profile-form input { width: 100%; padding: 11px; border: 1px solid #bdb5ac; border-radius: 5px; background: #fff; color: #292622; }
.lmp-profile-form textarea { width: 100%; padding: 11px; border: 1px solid #bdb5ac; border-radius: 5px; background: #fff; color: #292622; }
.lmp-profile-form input[readonly] { background: #f3f1ed; }
.lmp-profile-errors { max-width: 640px; padding: 16px; border: 1px solid #b85b53; background: #fff3f1; }
.lmp-public-header { box-sizing: border-box; position: relative; z-index: 1100; display: flex; align-items: center; gap: 18px; width: 100%; min-height: 76px; padding: 12px clamp(16px, 4vw, 56px); border-bottom: 1px solid #ece7e0; background: #fffefa; font-family: "DM Sans", system-ui, sans-serif; }
.lmp-public-header *, .lmp-public-header *::before, .lmp-public-header *::after { box-sizing: border-box; }
.lmp-public-brand { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; color: #24211f; text-decoration: none; }
.lmp-public-mark { position: relative; display: block; flex: 0 0 42px; width: 42px; height: 50px; overflow: hidden; }
.lmp-public-header .lmp-public-mark img { display: block; width: 104px; height: 54px; max-width: none; object-fit: cover; object-position: left center; transform: translateX(-1px); }
.lmp-public-wordmark { display: grid; gap: 3px; }
.lmp-public-wordmark strong { color: #282622; font: 700 15px/1.05 "DM Sans", system-ui, sans-serif; letter-spacing: -.04em; white-space: nowrap; }
.lmp-public-wordmark small { color: #8e282c; font: 700 8px/1 "DM Sans", system-ui, sans-serif; letter-spacing: .28em; text-transform: uppercase; }
.lmp-public-nav { display: flex; align-items: center; justify-content: flex-end; flex: 1; min-width: 0; gap: clamp(9px, 1.2vw, 18px); }
.lmp-public-nav a, .lmp-public-nav button { display: block; padding: 10px 0; border: 0; background: transparent; color: #403c39; font: 600 13px/1.3 "DM Sans", system-ui, sans-serif; text-decoration: none; white-space: nowrap; cursor: pointer; }
.lmp-public-nav a:hover, .lmp-public-nav button:hover, .lmp-public-nav [aria-current], .lmp-public-nav .is-active { color: #8e282c; }
.lmp-public-nav [aria-current], .lmp-public-nav .is-active { text-decoration: underline; text-underline-offset: 5px; }
.lmp-public-header :focus-visible { outline: 3px solid #af5b53; outline-offset: 3px; }
.lmp-public-header .lmp-public-toggle { display: none; border: 1px solid #d6cec4; border-radius: 6px; background: #fff; color: #302c29; padding: 9px 12px; font: 700 13px/1 "DM Sans", system-ui, sans-serif; cursor: pointer; }
.lmp-public-header .lmp-guest-register, .lmp-public-header .lmp-guest-register:hover { color: #fff; }
.lmp-public-header .lmp-account-controls [aria-current] { text-decoration: underline; text-underline-offset: 4px; }
.lmp-public-group { position: relative; }
.lmp-public-nav .lmp-public-group > button { display: inline-flex; align-items: center; gap: 5px; }
.lmp-public-chevron { display: block; flex: 0 0 14px; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .16s ease; }
.lmp-public-group > button[aria-expanded="true"] .lmp-public-chevron { transform: rotate(180deg); }
.lmp-public-submenu { position: absolute; top: 100%; left: -12px; z-index: 2100; width: 220px; max-width: calc(100vw - 32px); padding: 8px; border: 1px solid #e8e2d9; border-radius: 8px; background: #fff; box-shadow: 0 14px 35px rgba(34,29,24,.14); }
.lmp-public-submenu[hidden] { display: none; }
.lmp-public-submenu a { padding: 9px 10px; white-space: normal; }
.lmp-public-submenu a:hover { background: #f7f3ef; }
@media (max-width: 1199px) {
    .lmp-public-header { gap: 10px; }
    .lmp-public-header .lmp-public-toggle { display: block; margin-left: auto; }
    .lmp-public-nav { display: none; position: absolute; top: 100%; left: 12px; right: 12px; max-height: calc(100vh - 90px); overflow-y: auto; padding: 10px; border: 1px solid #e8e2d9; border-radius: 8px; background: #fff; box-shadow: 0 18px 40px rgba(34,29,24,.16); }
    .lmp-public-nav.is-open { display: block; }
    .lmp-public-nav > a, .lmp-public-nav > .lmp-public-group > button { width: 100%; padding: 10px; text-align: left; }
    .lmp-public-nav > .lmp-public-group > button { justify-content: space-between; }
    .lmp-public-submenu { position: static; width: 100%; max-width: none; padding: 0 0 0 14px; border: 0; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) { .lmp-public-chevron { transition: none; } }
@media (max-width: 575px) {
    .lmp-account-controls { gap: 3px; }
    .lmp-account { position: static; }
    .lmp-account-panel { right: 12px; left: 12px; width: auto; max-width: calc(100vw - 24px); max-height: calc(100vh - 72px); max-height: calc(100dvh - 72px); }
    .lmp-guest-login, .lmp-guest-register { padding: 8px 7px; font-size: 11px; }
    .lmp-public-header { gap: 5px; padding: 10px 12px; }
    .lmp-public-brand { gap: 6px; min-width: 0; }
    .lmp-public-mark { flex-basis: 34px; width: 34px; height: 44px; }
    .lmp-public-header .lmp-public-mark img { width: 90px; height: 47px; }
    .lmp-public-wordmark strong { font-size: 12px; }
    .lmp-public-wordmark small { font-size: 8px; }
    .lmp-public-header .lmp-public-toggle { padding: 8px; font-size: 12px; }
    .top-navbar { gap: 8px; padding-left: 12px; padding-right: 12px; }
    .top-navbar h5 { font-size: 1rem; }
}
@media (max-width: 360px) {
    .lmp-public-mark { flex-basis: 30px; width: 30px; height: 40px; }
    .lmp-public-header .lmp-public-mark img { width: 82px; height: 43px; }
    .lmp-public-wordmark strong { font-size: 10px; }
    .lmp-public-wordmark small { font-size: 7px; }
    .lmp-public-header .lmp-account-controls { gap: 0; }
    .lmp-public-header .lmp-guest-login, .lmp-public-header .lmp-guest-register { padding: 8px 5px; font-size: 10px; }
}
