/* ─── The accent trial picker (js/accent_test.js): remove with that file ─── */
.accent-test {
    position: fixed;
    left: var(--fab-gap, 1.3rem);
    bottom: var(--fab-gap, 1.3rem);
    z-index: 950;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 40px;
    padding: 0 0.5rem 0 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-primary);
    box-shadow: var(--neo-btn);
    color: var(--text-secondary);
    font-size: 0.8rem;
}
.accent-test-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--brand-orange); }
.accent-test select {
    height: 30px;
    padding: 0 0.3rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-deep);
    color: var(--text-primary);
    font: inherit;
}

/* ─── Top-right control group ─── */
.top-controls {
    position: fixed;
    top: 1.3rem;
    right: 1.3rem;
    z-index: 1002;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.top-ctrl-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-primary);
    box-shadow: var(--neo-btn);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: box-shadow 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.top-ctrl-btn:hover {
    box-shadow: 0 0 12px var(--neo-dark);
    color: var(--text-primary);
}

.top-ctrl-btn:active {
    box-shadow: var(--neo-pressed);
}

.top-ctrl-btn.active {
    box-shadow: var(--neo-pressed), 0 0 10px rgba(0, 212, 255, 0.25);
    color: var(--brand-cyan);
}

/* Account button (js/account.js): a person icon for a guest, the account's initial once signed in */
.account-btn { position: relative; overflow: hidden; padding: 0; }
.account-btn .account-initial { display: none; font-weight: 700; font-size: 0.95rem; }
.account-btn.signed-in .account-icon { display: none; }
.account-btn.signed-in .account-initial { display: block; }
.account-btn.signed-in .account-initial.hidden { display: none; }
.account-btn.signed-in { color: var(--brand-orange); }
.account-photo { position: absolute; inset: 3px; width: calc(100% - 6px); height: calc(100% - 6px); border-radius: 8px; object-fit: cover; }
.account-photo.hidden { display: none; }
.account-menu {
    position: fixed;
    top: calc(1.3rem + 40px + 0.5rem);
    right: 1.3rem;
    z-index: 1002;
    width: min(290px, calc(100vw - 1.5rem));
    padding: 0.9rem 1rem;
    border-radius: 14px;
    background: var(--bg-primary);
    color: var(--text-primary);
    box-shadow: var(--neo-float), 0 8px 24px rgba(0, 0, 0, 0.35);
    font-size: 0.86rem;
}
.account-menu p { margin: 0 0 0.6rem; color: var(--text-secondary); }
/* Signed in: who, then what the account may do, then sign out */
.account-head { display: flex; align-items: center; gap: 0.75rem; padding-bottom: 0.8rem; border-bottom: 1px solid var(--border-color); }
.account-avatar {
    position: relative; flex: none; width: 48px; height: 48px; border-radius: 50%; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-deep); color: var(--brand-orange); font-weight: 700; font-size: 1.25rem; box-shadow: var(--neo-inset);
}
.account-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.account-avatar .hidden { display: none; }
.account-row.hidden { display: none; }
.account-who { min-width: 0; }
.account-who strong { display: block; font-size: 0.98rem; line-height: 1.25; overflow-wrap: anywhere; }
.account-email { display: block; margin-top: 0.1rem; font-size: 0.8rem; color: var(--text-secondary); overflow-wrap: anywhere; }
.account-usage { margin: 0; padding: 0.75rem 0 0; }
.account-row { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.4rem; }
.account-row dt { color: var(--text-secondary); font-size: 0.8rem; }
.account-row dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.account-meter { height: 6px; border-radius: 3px; background: var(--bg-deep); overflow: hidden; margin: 0.1rem 0 0.45rem; }
.account-meter.hidden { display: none; }
.account-meter span { display: block; height: 100%; border-radius: 3px; background: var(--brand-cyan); transition: width 0.25s ease; }
.account-meter.full span { background: var(--brand-orange); }
.account-menu .account-resets { margin: 0; font-size: 0.78rem; }
.account-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 0.8rem; padding-top: 0.75rem; border-top: 1px solid var(--border-color); }
.account-via { font-size: 0.75rem; color: var(--text-secondary); }
.account-google { min-height: 44px; color-scheme: light; }
.account-error { color: #b45309; }
.account-signout {
    height: 36px; padding: 0 0.9rem; border: none; border-radius: 9px; cursor: pointer;
    background: var(--bg-primary); color: var(--text-primary); box-shadow: var(--neo-btn); font-weight: 600;
}
.account-signout:focus-visible, .account-btn:focus-visible, .account-delete:focus-visible { outline: 2px solid var(--brand-cyan); outline-offset: 2px; }
/* Delete my account: a quiet text button under the card; the confirmation carries the weight */
.account-delete {
    display: block; margin: 0.7rem 0 0 auto; padding: 0.3rem 0.2rem; min-height: 32px; border: none; background: none; cursor: pointer;
    font-size: 0.78rem; color: var(--text-secondary); text-decoration: underline;
}
.account-delete:hover { color: #c0392b; }

/* Theme button: sun/moon icon swap */
[data-theme="dark"] #themeToggleBtn .icon-moon,
[data-theme="light"] #themeToggleBtn .icon-sun { display: none; }
[data-theme="dark"] #themeToggleBtn .icon-sun,
[data-theme="light"] #themeToggleBtn .icon-moon { display: block; }
#themeToggleBtn:hover { color: var(--brand-orange); transform: rotate(20deg); }

/* Subtle cyan tint when theme is following the clock (auto mode) */
#themeToggleBtn.auto-mode { color: var(--brand-cyan); box-shadow: var(--neo-btn), 0 0 8px rgba(0, 212, 255, 0.18); }

/* Burger menu — neomorphic raised tile */
.burger-menu-btn {
    width: 40px;
    height: 40px;
    background: var(--bg-primary);
    border: none;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    box-shadow: var(--neo-btn);
    transition: box-shadow 0.2s ease;
}

.burger-menu-btn:hover {
    box-shadow: 0 0 14px var(--neo-dark), 0 0 18px rgba(var(--brand-orange-rgb), 0.15);
}

.burger-menu-btn.open {
    box-shadow: 0 0 10px var(--neo-dark), 0 0 0 1.5px rgba(var(--brand-orange-rgb), 0.45);
}

.burger-menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.burger-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); width: 24px; }
.burger-menu-btn.open span:nth-child(2) { opacity: 0; width: 24px; }
.burger-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); width: 24px; }

/* Burger inside the group — positioning reset */
.top-ctrl-burger {
    position: static !important;
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

/* The account features' dialog: the login prompt at a guest's limit, and sign-in choices (js/account.js).
   Above the drawers, the preview and Help; tours sit higher. */
.lmc-dialog {
    position: fixed; inset: 0; z-index: 1300;
    display: flex; align-items: center; justify-content: center; padding: 1rem;
    background: rgba(0, 0, 0, 0.55);
}
.lmc-dialog.hidden { display: none; }
.lmc-dialog-card {
    width: min(380px, 100%); max-height: calc(100vh - 2rem); overflow-y: auto; box-sizing: border-box;
    padding: 1.3rem 1.4rem 1.2rem; border-radius: 16px;
    background: var(--bg-primary); color: var(--text-primary);
    box-shadow: var(--neo-float), 0 12px 32px rgba(0, 0, 0, 0.45);
}
.lmc-dialog-card h2 { margin: 0 0 0.5rem; font-size: 1.15rem; line-height: 1.3; }
.lmc-dialog-card p { margin: 0 0 0.9rem; font-size: 0.92rem; line-height: 1.45; color: var(--text-secondary); overflow-wrap: anywhere; }
.lmc-dialog-card .lmc-dialog-note { margin: 0 0 1rem; color: var(--text-primary); font-weight: 600; }
.lmc-dialog-note.hidden { display: none; }
.lmc-dialog-card .account-google { display: flex; justify-content: center; margin-bottom: 0.9rem; }
.lmc-dialog-card .account-google.hidden { display: none; }
.lmc-dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.6rem; }
.lmc-dialog-btn {
    min-height: 40px; padding: 0 1rem; border: none; border-radius: 10px; cursor: pointer;
    background: var(--bg-primary); color: var(--text-primary); box-shadow: var(--neo-btn); font-weight: 600; font-size: 0.9rem;
}
.lmc-dialog-btn.primary { background: var(--brand-orange); color: #1a1a1a; box-shadow: none; }
.lmc-dialog-btn.danger { background: #c0392b; color: #fff; box-shadow: none; }
.lmc-dialog-btn:focus-visible { outline: 2px solid var(--brand-cyan); outline-offset: 2px; }
@media (max-width: 480px) {
    .lmc-dialog-actions { flex-direction: column-reverse; }
    .lmc-dialog-btn { width: 100%; min-height: 44px; }
}
