/* Shared Design 3 tokens are defined by resources/css/app.css. */

.lb-account-page { background: var(--lb-canvas); color: var(--lb-text); min-height: 75vh; padding: 3rem 0 4rem; }
.lb-account-shell { display: grid; grid-template-columns: minmax(210px, 250px) minmax(0, 1fr); gap: 2rem; align-items: start; }
.lb-account-nav, .lb-panel, .lb-stat, .lb-auth-card { background: var(--lb-surface); border: 1px solid var(--lb-border); border-radius: var(--lb-radius); box-shadow: var(--lb-shadow); }
.lb-account-nav { position: sticky; top: 1rem; padding: 1rem; }
.lb-account-identity { padding: .75rem .75rem 1rem; border-bottom: 1px solid var(--lb-border); margin-bottom: .75rem; }
.lb-account-identity strong, .lb-account-identity span { display: block; overflow-wrap: anywhere; }
.lb-account-identity span { color: var(--lb-muted); font-size: .82rem; margin-top: .2rem; }
.lb-account-menu { display: grid; gap: .25rem; }
.lb-account-menu a { color: var(--lb-text); display: flex; gap: .7rem; align-items: center; min-height: 44px; padding: .65rem .75rem; border-radius: 10px; text-decoration: none; font-weight: 700; transition: background-color .2s, color .2s, transform .2s; }
.lb-account-menu a:hover, .lb-account-menu a[aria-current="page"] { color: var(--lb-primary); background: rgba(15, 81, 50, .08); }
.lb-account-menu a:hover { transform: translateX(2px); }
.lb-account-main { min-width: 0; }
.lb-account-header { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.lb-eyebrow { color: var(--lb-primary); font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .35rem; }
.lb-account-header h1 { color: var(--lb-text); font-size: clamp(1.8rem, 4vw, 2.7rem); margin: 0; line-height: 1.12; }
.lb-account-header p { color: var(--lb-muted); margin: .55rem 0 0; max-width: 680px; }
.lb-btn { align-items: center; border: 1px solid transparent; border-radius: 10px; cursor: pointer; display: inline-flex; font-weight: 800; gap: .45rem; justify-content: center; min-height: 44px; padding: .65rem 1rem; text-decoration: none; transition: transform .2s, box-shadow .2s, background-color .2s; }
.lb-btn:hover { transform: translateY(-1px); text-decoration: none; }
.lb-btn-primary { background: var(--lb-primary); color: #fff; }
.lb-btn-primary:hover { background: var(--lb-primary-light); color: #fff; box-shadow: 0 8px 18px rgba(15,81,50,.18); }
.lb-btn-secondary { background: #fff; border-color: var(--lb-primary); color: var(--lb-primary); }
.lb-btn-danger { background: #fff; border-color: #dc2626; color: #b91c1c; }
.lb-stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.lb-stat { padding: 1.25rem; }
.lb-stat span { color: var(--lb-muted); display: block; font-size: .82rem; font-weight: 700; }
.lb-stat strong { color: var(--lb-text); display: block; font-size: 1.8rem; line-height: 1.1; margin-top: .45rem; }
.lb-stat.is-accent { border-top: 3px solid var(--lb-accent); }
.lb-panel { margin-bottom: 1.25rem; overflow: hidden; }
.lb-panel-head { align-items: center; border-bottom: 1px solid var(--lb-border); display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; }
.lb-panel-head h2 { font-size: 1.05rem; margin: 0; }
.lb-panel-body { padding: 1.25rem; }
.lb-table-wrap { overflow-x: auto; }
.lb-table { border-collapse: collapse; min-width: 660px; width: 100%; }
.lb-table th { color: var(--lb-muted); font-size: .75rem; letter-spacing: .04em; text-align: left; text-transform: uppercase; }
.lb-table th, .lb-table td { border-bottom: 1px solid var(--lb-border); padding: .85rem .75rem; vertical-align: middle; }
.lb-table tr:last-child td { border-bottom: 0; }
.lb-table-title { color: var(--lb-text); font-weight: 800; overflow-wrap: anywhere; }
.lb-status { border-radius: 999px; display: inline-flex; font-size: .72rem; font-weight: 800; padding: .3rem .6rem; text-transform: capitalize; }
.lb-status-published, .lb-status-active { background: #dcfce7; color: #166534; }
.lb-status-pending { background: var(--lb-accent-light); color: #92400e; }
.lb-status-draft { background: #f1f5f9; color: #475569; }
.lb-status-rejected, .lb-status-suspended { background: #fee2e2; color: #991b1b; }
.lb-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.lb-field { min-width: 0; }
.lb-field-full { grid-column: 1 / -1; }
.lb-field label { color: var(--lb-text); display: block; font-weight: 800; margin-bottom: .4rem; }
.lb-field small { color: var(--lb-muted); display: block; margin-top: .35rem; }
.lb-control { background: #fff; border: 1px solid var(--lb-border); border-radius: 10px; color: var(--lb-text); min-height: 46px; padding: .65rem .75rem; width: 100%; }
textarea.lb-control { min-height: 120px; resize: vertical; }
.lb-control:focus, .lb-btn:focus-visible, .lb-account-menu a:focus-visible { border-color: var(--lb-primary); box-shadow: var(--lb-focus); outline: 0; }
.lb-control[aria-invalid="true"] { border-color: #dc2626; }
.lb-error { color: #b91c1c; font-size: .82rem; margin-top: .35rem; }
.lb-alert { border: 1px solid; border-radius: 12px; margin-bottom: 1.25rem; padding: .9rem 1rem; }
.lb-alert-success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.lb-alert-danger { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.lb-empty { color: var(--lb-muted); padding: 2rem 1rem; text-align: center; }
.lb-avatar { border: 3px solid #fff; border-radius: 50%; box-shadow: 0 4px 14px rgba(17,24,39,.12); height: 88px; object-fit: cover; width: 88px; }
.lb-auth-wrap { background: var(--lb-canvas); min-height: 75vh; padding: 4rem 1rem; }
.lb-auth-card { margin: 0 auto; max-width: 520px; padding: clamp(1.4rem, 5vw, 2.4rem); }
.lb-auth-card h1 { color: var(--lb-text); font-size: 2rem; margin: 0 0 .5rem; }
.lb-auth-card > p { color: var(--lb-muted); margin-bottom: 1.5rem; }
.lb-auth-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; }
.lb-author-hero { background: var(--lb-primary); color: #fff; padding: 3.25rem 0; }
.lb-author-grid { display: grid; grid-template-columns: 150px minmax(0,1fr); gap: 2rem; align-items: center; }
.lb-author-hero .lb-avatar { height: 130px; width: 130px; }
.lb-author-hero h1 { color: #fff; margin: 0 0 .4rem; }
.lb-author-hero p { color: rgba(255,255,255,.82); margin: .3rem 0; max-width: 760px; }
.lb-author-body { background: var(--lb-canvas); padding: 2.5rem 0 4rem; }
.lb-author-articles { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.lb-author-card { background: #fff; border: 1px solid var(--lb-border); border-radius: 14px; overflow: hidden; }
.lb-author-card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.lb-author-card-body { padding: 1rem; }
.lb-author-card a { color: var(--lb-text); font-weight: 800; text-decoration: none; }

@media (max-width: 900px) {
    .lb-account-shell { grid-template-columns: 1fr; }
    .lb-account-nav { position: static; }
    .lb-account-menu { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .lb-author-articles { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 600px) {
    .lb-account-page { padding-top: 1.5rem; }
    .lb-account-header { align-items: stretch; flex-direction: column; }
    .lb-stats, .lb-form-grid, .lb-author-articles { grid-template-columns: 1fr; }
    .lb-account-menu { grid-template-columns: 1fr; }
    .lb-author-grid { grid-template-columns: 1fr; text-align: center; }
    .lb-author-hero .lb-avatar { margin: 0 auto; }
    .lb-auth-actions { align-items: stretch; flex-direction: column; }
    .lb-auth-actions .lb-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .lb-btn, .lb-account-menu a { transition: none; }
}
