/**
 * File: assets/css/frontend/account-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/account.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-account-nav__item.is-active {
    border-left-color: var(--hdf-engine-color-primary-strong);
}

.hdf-account-nav__icon {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 9px;
    background: var(--hdf-engine-color-surface-subtle);
    color: var(--hdf-engine-color-text-muted);
}

.hdf-account-nav__icon .hdf-account-icon {
    width: 16px;
    height: 16px;
}

.hdf-account-nav__item:hover .hdf-account-nav__icon,
.hdf-account-nav__item:focus-visible .hdf-account-nav__icon,
.hdf-account-nav__item.is-active .hdf-account-nav__icon {
    background: var(--hdf-engine-color-surface);
    color: var(--hdf-engine-color-primary-strong);
}

.hdf-account-nav__arrow {
    color: var(--hdf-engine-color-text-disabled);
    font-size: 1rem;
}

.hdf-account-nav__signout {
    margin-top: 6px;
    color: var(--hdf-engine-color-danger);
}

.hdf-account__content {
    display: grid;
    min-width: 0;
    gap: var(--hdf-account-gap);
}

.hdf-account-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.hdf-account-metric {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 112px;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    grid-template-rows: 1fr auto;
    align-items: center;
    gap: 6px 12px;
    padding: 18px;
    overflow: hidden;
    border: 1px solid var(--hdf-engine-color-border);
    border-radius: 14px;
    background: var(--hdf-engine-color-surface);
    text-decoration: none;
    transition: border-color 160ms ease, transform 160ms ease;
}

.hdf-account-metric:hover,
.hdf-account-metric:focus-visible {
    border-color: color-mix(in srgb, var(--hdf-engine-color-primary-strong) 45%, var(--hdf-engine-color-border));
    transform: translateY(-2px);
}

.hdf-account-metric__icon {
    display: grid;
    width: 44px;
    height: 44px;
    grid-row: 1 / span 2;
    place-items: center;
    border-radius: 12px;
    background: var(--hdf-engine-color-surface-selected);
    color: var(--hdf-engine-color-primary-strong);
}

.hdf-account-metric__copy {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.hdf-account-metric__copy small {
    overflow: hidden;
    color: var(--hdf-engine-color-text-muted);
    font-size: .68rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hdf-account-metric__copy strong {
    font-size: .9rem;
}

.hdf-account-metric b {
    grid-row: 1 / span 2;
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    letter-spacing: -.04em;
}

.hdf-account-metric__arrow {
    position: absolute;
    right: 15px;
    bottom: 10px;
    color: var(--hdf-engine-color-text-disabled);
    font-size: .9rem;
}

.hdf-account-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(260px, .75fr);
    align-items: start;
    gap: var(--hdf-account-gap);
}

.hdf-account-panel,
.hdf-account-empty,
.hdf-account-notice,
.hdf-account-login,
.hdf-account-library {
    border: 1px solid var(--hdf-engine-color-border);
    border-radius: var(--hdf-engine-radius-lg, 14px);
    background: var(--hdf-engine-color-surface);
}

.hdf-account-panel {
    min-width: 0;
    padding: var(--hdf-account-panel-pad);
}

.hdf-account-panel__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.hdf-account-panel__heading h2,
.hdf-account-panel h2,
.hdf-account-panel h3,
.hdf-account-empty h2,
.hdf-account-library h2 {
    margin: 0;
    color: var(--hdf-engine-color-text);
    line-height: 1.25;
}

.hdf-account-panel__heading h2,
.hdf-account-library h2 {
    font-size: 1.25rem;
}

.hdf-account-panel__heading > a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--hdf-engine-color-primary-strong);
    font-size: .78rem;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
}

.hdf-account-panel__heading > span:not(.hdf-account-verified) {
    color: var(--hdf-engine-color-text-muted);
    font-size: .78rem;
    font-weight: 650;
}

.hdf-account-library {
    padding: 22px;
}

.hdf-account-library__head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hdf-account-library__head > span {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border-radius: 12px;
    background: var(--hdf-engine-color-surface-selected);
    color: var(--hdf-engine-color-primary-strong);
}

.hdf-account-library__head .hdf-account-icon {
    width: 19px;
    height: 19px;
}

.hdf-account-library > p {
    margin: 16px 0;
    color: var(--hdf-engine-color-text-muted);
    font-size: .78rem;
    line-height: 1.6;
}

.hdf-account-library nav {
    display: grid;
    margin-bottom: 18px;
    border-top: 1px solid var(--hdf-engine-color-border-subtle);
}

.hdf-account-library nav a {
    display: grid;
    min-height: 45px;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    border-bottom: 1px solid var(--hdf-engine-color-border-subtle);
    font-size: .77rem;
    text-decoration: none;
}

.hdf-account-library nav a > span {
    color: var(--hdf-engine-color-primary-strong);
}

.hdf-account-library nav .hdf-account-icon {
    width: 16px;
    height: 16px;
}

