/**
 * File: assets/css/frontend/header-widgets/account-panel-part2.css
 * Purpose: Split piece of a larger source file (1.0.191 file-size programme; cascade/build order unchanged). Continuation part 2 of assets/css/frontend/header-widgets/account-panel.css (split for the 300-line standard; cascade order is preserved by the enqueue chain).
 * Scope: Same feature scope as the source file named in the provenance line; not a standalone design source.
 * Package: HyperDAF Engine
 */
.hdf-header-account-logout:hover {
    color: var(--hdf-color-primary-strong, #4F7A20);
    text-decoration: underline;
}

.hdf-header-account-quick-label {
    margin: .2rem .8rem .35rem;
    padding: .35rem .8rem;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--hdf-engine-color-text);
    background: var(--hdf-engine-color-surface-subtle, #f1f4f6);
    border: 1px solid var(--hdf-engine-color-border-subtle);
    border-radius: .6rem;
}

/* 8 quick buttons: 4 left + 4 right, 2 columns × 4 rows. */
.hdf-header-account-quick8 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .4rem;
    padding: 0 .8rem .5rem;
    background: transparent;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.hdf-header-account-quick8__btn {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-width: 0;
    max-width: 100%;
    min-height: 2.25rem;
    padding: .35rem .65rem;
    border: 1px solid var(--hdf-engine-color-border, #e2e8ee);
    border-radius: .65rem;
    background: #fff;
    color: var(--hdf-engine-color-text);
    font-size: .76rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(11, 31, 58, .04);
    transition: all .15s ease;
    box-sizing: border-box;
    overflow: hidden;
}

.hdf-header-account-quick8__btn:hover {
    border-color: var(--hdf-color-primary-strong, #4F7A20);
    background: var(--hdf-color-primary-strong, #4F7A20);
    color: #fff;
    box-shadow: 0 2px 8px rgba(79, 122, 32, .25);
    transform: translateY(-1px);
}

.hdf-header-account-quick8__btn:hover .hdf-header-account-quick8__icon,
.hdf-header-account-quick8__btn:hover .hdf-header-account-quick8__arrow {
    color: #fff;
}

.hdf-header-account-quick8__icon {
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    color: var(--hdf-engine-color-text-muted);
}

.hdf-header-account-quick8__icon .hdf-engine-icon {
    width: 1rem;
    height: 1rem;
}

.hdf-header-account-quick8__btn > span:nth-child(2) {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hdf-header-account-quick8__arrow {
    flex: 0 0 auto;
    color: var(--hdf-engine-color-text-faint, #9aa5b1);
    font-size: .9rem;
}

/* Bottom help row: text left, Support button right. */
.hdf-header-account-help {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .7rem;
    margin: 0 .8rem .7rem;
    padding: .45rem .8rem;
    border: 1px solid var(--hdf-engine-color-border, #e2e8ee);
    border-radius: .7rem;
    background: #fff;
}

.hdf-header-account-help__text {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    min-width: 0;
}

.hdf-header-account-help__text strong {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--hdf-engine-color-text);
    white-space: nowrap;
}

.hdf-header-account-help__btn {
    flex: 0 0 auto;
    min-height: 1.75rem;
    padding: .3rem 1rem;
    border: 1px solid var(--hdf-engine-color-border, #e2e8ee);
    border-radius: .6rem;
    background: #fff;
    color: var(--hdf-engine-color-text);
    font-size: .72rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(11, 31, 58, .04);
    transition: all .15s ease;
}

.hdf-header-account-help__btn:hover {
    border-color: var(--hdf-color-primary-strong, #4F7A20);
    background: var(--hdf-color-primary-strong, #4F7A20);
    color: #fff;
    box-shadow: 0 2px 8px rgba(79, 122, 32, .25);
}

.hdf-header-account-profile__email {
    display: block;
    font-size: .68rem;
    color: var(--hdf-engine-color-text-muted);
    word-break: break-all;
    max-width: 100%;
}

/* Account dialog: remove outer wrapper chrome so only the panel shows. */
#hdf-header-identity-widget:has(.hdf-header-account-panel) {
    background: transparent;
    border: 0;
    padding: 0;
    box-shadow: none;
}
