.garden-topbar .garden-topbar-note {
    margin-left: auto;
}

.garden-account-entry {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid #b7c8af;
    border-radius: 10px;
    background: #fffefa;
    color: #28513f;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    text-decoration: none;
}

.garden-account-entry.is-avatar {
    width: 44px;
    padding: 0;
    overflow: hidden;
    border-radius: 50%;
    background: #eaf0e4;
    font-size: 20px;
    white-space: nowrap;
}

.garden-account-entry:hover { background: #e3ebdc; }
.garden-account-entry:focus-visible,
.garden-account-dialog :focus-visible { outline: 2px solid #347758; outline-offset: 3px; }

.garden-page #garden-sync-bar { z-index: 200; }

.garden-account-dialog,
.garden-account-dialog.dialog-fallback {
    position: fixed;
    top: 76px;
    right: max(12px, calc((100vw - 1600px) / 2 + 40px));
    bottom: auto;
    left: auto;
    box-sizing: border-box;
    width: calc(100vw - 24px);
    max-width: 380px;
    max-height: calc(100vh - 92px);
    max-height: calc(100dvh - 92px);
    margin: 0;
    padding: 20px;
    overflow-y: auto;
    border: 1px solid #b7c8af;
    border-radius: 16px;
    background: #fffefa;
    color: #284436;
    box-shadow: 0 15px 50px #203b332e;
    transform: none;
}

.garden-account-dialog::backdrop { background: #273f3470; }
.garden-account-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.garden-account-heading h2 { margin: 0; font-size: 21px; }
.garden-account-dialog button { min-height: 44px; font: inherit; cursor: pointer; }
#garden-account-close { width: 44px; border: 0; border-radius: 50%; background: #ecf1e6; color: #284436; font-size: 22px; }
#garden-account-form { display: grid; gap: 7px; }
#garden-account-form label { font-size: 14px; font-weight: 700; }
#garden-account-form input {
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    margin-bottom: 6px;
    padding: 8px 11px;
    border: 1px solid #b7c8af;
    border-radius: 8px;
    background: #fff;
    color: inherit;
    font-size: 16px;
}
#garden-account-hint, #garden-account-error { margin: 0; font-size: 13px; line-height: 1.5; }
#garden-account-error { color: #9b3730; }
#garden-account-error:empty { display: none; }
.garden-account-submit { border: 0; border-radius: 9px; background: #35654d; color: #fff; }
.garden-account-switch { border: 0; background: transparent; color: #345f49; text-decoration: underline; }
.garden-account-dialog button:disabled { opacity: .65; cursor: default; }

@media (max-width: 600px), (max-height: 500px) {
    .garden-account-dialog,
    .garden-account-dialog.dialog-fallback {
        top: 12px;
        right: 0;
        left: 0;
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px);
        margin: 0 auto;
    }
}
