.ocsalya-account-menu {
    --account-ink: #eff6ff;
    --account-muted: #a9bdd3;
    --account-edge: #304259;
    --account-lime: #9fef00;
    position: relative;
    color: var(--account-ink);
    font-family: "Ubuntu Sans", Ubuntu, system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.45;
    text-align: start;
}
.ocsalya-account-menu [hidden] { display: none !important; }
.ocsalya-account-trigger {
    display: flex;
    align-items: stretch;
    min-height: 46px;
    border: 1px solid var(--account-edge);
    border-radius: 10px;
    background: #111c2b;
}
.ocsalya-account-menu .ocsalya-account-primary,
.ocsalya-account-menu .ocsalya-account-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 4px 11px 4px 6px;
    border-radius: 9px 0 0 9px;
    color: var(--account-ink);
    text-decoration: none;
    font-weight: 700;
}
.ocsalya-account-menu .ocsalya-account-toggle {
    width: 44px;
    padding: 0;
    border: 0;
    border-inline-start: 1px solid var(--account-edge);
    border-radius: 0 9px 9px 0;
    background: transparent;
    cursor: pointer;
}
.ocsalya-account-menu.is-guest .ocsalya-account-primary {
    padding-inline: 16px;
    background: var(--account-lime);
    color: #0c1504;
    white-space: nowrap;
}
.ocsalya-account-menu.is-guest .ocsalya-account-primary:hover { background: #bdff42; }
.ocsalya-account-menu.is-member .ocsalya-account-primary:hover,
.ocsalya-account-menu .ocsalya-account-toggle:hover,
.ocsalya-account-menu .ocsalya-account-toggle[aria-expanded="true"] {
    background: #1a2a3f;
    color: var(--account-lime);
}
.ocsalya-account-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.ocsalya-account-menu :is(a, button):focus-visible {
    outline: 2px solid var(--account-lime);
    outline-offset: 2px;
}
.ocsalya-account-menu.is-guest .ocsalya-account-primary:focus-visible { outline-offset: 4px; }
.ocsalya-account-name {
    max-width: 13ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ocsalya-account-avatar {
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    border: 1px solid #49643a;
    background: #253722;
    color: #d0ff90;
    font-size: 12px;
}
.ocsalya-account-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ocsalya-account-panel {
    position: absolute;
    z-index: 1001;
    inset-block-start: 100%;
    inset-inline-end: 0;
    width: min(365px, calc(100vw - 32px));
    padding-block-start: 10px;
}
.ocsalya-account-card {
    max-height: min(660px, calc(100dvh - 116px));
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #40536a #111c2b;
    border: 1px solid var(--account-edge);
    border-radius: 13px;
    background: #111c2b;
    box-shadow: 0 20px 48px #050910a8;
}
.ocsalya-account-heading { padding: 17px 18px 15px; border-bottom: 1px solid #243449; }
.ocsalya-account-heading .ocsalya-account-kicker {
    display: block;
    color: #c0f287;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.ocsalya-account-heading strong { display: block; margin: 4px 0; font-size: 18px; overflow-wrap: anywhere; }
.ocsalya-account-heading p { margin: 4px 0 12px; color: var(--account-muted); }
.ocsalya-account-heading a { color: #c0f287; text-decoration: underline; text-underline-offset: 3px; }
.ocsalya-account-heading a.ocsalya-account-register {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 6px 12px;
    border: 1px solid #57763c;
    border-radius: 7px;
    background: #1b2e24;
    text-decoration: none;
    font-weight: 700;
}
.ocsalya-account-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; padding: 8px; }
.ocsalya-account-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 6px 9px;
    border-radius: 7px;
    color: var(--account-ink);
    text-decoration: none;
    font-weight: 650;
}
.ocsalya-account-links a:hover,
.ocsalya-account-notice:is(a):hover,
.ocsalya-account-heading a.ocsalya-account-register:hover { background: #1d3044; color: #d0ff90; }
.ocsalya-account-links span { flex: none; color: #a9c1db; }
.ocsalya-account-links svg { display: block; width: 17px; height: 17px; }
.ocsalya-account-activity { padding: 12px; border-top: 1px solid #243449; }
.ocsalya-account-activity-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ocsalya-account-activity h2 { margin: 0 0 4px; color: var(--account-ink); font: 700 14px/1.5 "Ubuntu Sans", Ubuntu, system-ui, sans-serif; }
.ocsalya-account-unread { padding: 2px 7px; border-radius: 20px; background: #253722; color: #d0ff90; font-size: 11px; font-weight: 700; }
.ocsalya-account-status { margin: 4px 0; color: var(--account-muted); }
.ocsalya-account-status:empty { margin: 0; }
.ocsalya-account-activity ul { display: grid; gap: 3px; margin: 4px 0 0; padding: 0; list-style: none; }
.ocsalya-account-activity li { min-width: 0; margin: 0; }
.ocsalya-account-notice {
    display: grid;
    gap: 2px;
    padding: 8px 10px;
    border-inline-start: 2px solid transparent;
    border-radius: 6px;
    color: var(--account-ink);
    text-decoration: none;
    overflow-wrap: anywhere;
}
.ocsalya-account-notice.is-unread { border-inline-start-color: var(--account-lime); background: #1a2b2f; }
.ocsalya-account-notice :is(span, small) { color: var(--account-muted); }
.ocsalya-account-notice span:empty { display: none; }
.ocsalya-account-more {
    display: block;
    width: 100%;
    min-height: 44px;
    margin-block-start: 4px;
    padding: 5px 8px;
    border: 1px solid var(--account-edge);
    border-radius: 7px;
    background: #182639;
    color: #d0ff90;
    font: inherit;
    cursor: pointer;
}
.ocsalya-account-more:hover { background: #20334a; color: #d0ff90; }
.ocsalya-account-announcements { margin-block-start: 10px; padding-block-start: 10px; border-top: 1px solid #243449; }
@media (max-width: 600px) {
    .ocsalya-account-name { max-width: 9ch; }
    .ocsalya-account-menu.is-member .ocsalya-account-primary { min-width: 44px; padding-inline: 5px; }
}
@media (max-width: 390px) {
    .ocsalya-account-name { max-width: 6ch; }
}
@media (max-width: 345px) {
    .ocsalya-account-name { display: none; }
}
