.lbm-form{max-width:760px}.lbm-form label{display:block;font-weight:650;margin-bottom:6px}.lbm-form input,.lbm-form select,.lbm-form textarea{width:100%;box-sizing:border-box;padding:11px 12px;border:1px solid #c7c7c7;border-radius:5px;background:#fff}.lbm-form button,.lbm-form .button{padding:11px 18px;border:0;border-radius:5px;cursor:pointer}.lbm-two{display:grid;grid-template-columns:1fr 1fr;gap:18px}.lbm-help{display:block;font-size:.88em;opacity:.75;margin-top:5px}.lbm-notice{padding:13px 15px;border-radius:6px;margin:0 0 16px}.lbm-error{background:#fbeaea;border-left:4px solid #b32d2e}.lbm-success{background:#e8f5e9;border-left:4px solid #17823b}.lbm-warning{background:#fff8df;border-left:4px solid #b98900}.lbm-dashboard{max-width:1100px;margin:auto}.lbm-dashboard-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.lbm-eyebrow{text-transform:uppercase;letter-spacing:.12em;font-size:.78rem;font-weight:700}.lbm-stat-grid{display:grid;grid-template-columns:repeat(5,minmax(140px,1fr));gap:14px;margin:20px 0}.lbm-stat,.lbm-panel{padding:18px;border:1px solid #ddd;border-radius:9px;background:#fff}.lbm-stat span{display:block;font-size:.85rem;opacity:.7}.lbm-stat strong{display:block;font-size:1.2rem;margin-top:7px}.lbm-panel{margin:18px 0}.lbm-table{width:100%;border-collapse:collapse}.lbm-table th,.lbm-table td{text-align:left;padding:10px;border-bottom:1px solid #e4e4e4}.lbm-table-wrap{overflow-x:auto}.lbm-author-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}.lbm-author-grid.columns-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lbm-author-card{border:1px solid #e1e1e1;border-radius:10px;padding:16px;background:#fff}.lbm-author-card img{aspect-ratio:1/1;object-fit:cover;width:100%;border-radius:7px}.lbm-author-placeholder{aspect-ratio:1/1;display:grid;place-items:center;font-size:4rem;background:#f1f1f1;border-radius:7px}.lbm-author-profile{max-width:1200px;margin:auto;padding:0 20px}.lbm-author-banner{height:260px;background-size:cover;background-position:center;border-radius:0 0 14px 14px}.lbm-author-hero-inner{display:grid;grid-template-columns:220px 1fr;gap:30px;align-items:center;padding:40px 0}.lbm-author-portrait{width:220px;height:220px;object-fit:cover;border-radius:12px}.lbm-author-intro{font-size:1.15rem;line-height:1.6}.lbm-author-section{margin:35px 0}.lbm-author-quote{font-size:1.25rem;padding:22px;border-left:4px solid currentColor;margin:35px 0}.lbm-link{text-decoration:underline}@media(max-width:800px){.lbm-two,.lbm-author-hero-inner{grid-template-columns:1fr}.lbm-stat-grid{grid-template-columns:repeat(2,1fr)}.lbm-author-grid,.lbm-author-grid.columns-3{grid-template-columns:repeat(2,1fr)}.lbm-author-portrait{width:160px;height:160px}}@media(max-width:520px){.lbm-two,.lbm-stat-grid,.lbm-author-grid,.lbm-author-grid.columns-3{grid-template-columns:1fr}}

.lbm-media-picker{margin:0 0 24px}.lbm-media-picker>label{font-weight:650;margin-bottom:8px}.lbm-media-picker-row{display:flex;align-items:center;gap:18px;padding:14px;border:1px solid #d2d2d2;border-radius:7px}.lbm-media-preview{width:120px;height:120px;border-radius:8px;overflow:hidden;background:#f3f3f3;display:grid;place-items:center;flex:0 0 120px;text-align:center;padding:8px;box-sizing:border-box}.lbm-media-preview img{width:100%;height:100%;object-fit:cover}.lbm-media-preview span{font-size:.84rem;opacity:.7}.lbm-media-actions{display:flex;flex-wrap:wrap;gap:9px;align-items:center}.lbm-media-actions .lbm-help{flex-basis:100%}@media(max-width:520px){.lbm-media-picker-row{align-items:flex-start;flex-direction:column}.lbm-media-preview{width:150px;height:150px;flex-basis:150px}}

/* Keep plugin-rendered author archives aligned with the active theme shell. */
body.lbm-author-taxonomy .lbm-author-profile{width:100%;box-sizing:border-box}
body.lbm-author-taxonomy .wp-site-blocks>header+main.lbm-author-profile{margin-block-start:0}

/* 2.0.4: keep profile content inside the active theme viewport. */
body.lbm-author-taxonomy main.lbm-author-profile{
    width:min(100%,1200px)!important;
    max-width:1200px!important;
    margin-inline:auto!important;
    padding-inline:clamp(18px,4vw,48px)!important;
    box-sizing:border-box!important;
    overflow:hidden;
}
body.lbm-author-taxonomy .lbm-author-hero,
body.lbm-author-taxonomy .lbm-author-section,
body.lbm-author-taxonomy .lbm-author-quote{
    min-width:0;
    max-width:100%;
}
body.lbm-author-taxonomy .lbm-author-hero-inner{
    width:100%;
    max-width:100%;
    box-sizing:border-box;
}
body.lbm-author-taxonomy .lbm-author-hero-inner>div{
    min-width:0;
    max-width:100%;
}
body.lbm-author-taxonomy .lbm-author-intro,
body.lbm-author-taxonomy .lbm-author-section,
body.lbm-author-taxonomy .lbm-author-section p{
    overflow-wrap:anywhere;
    word-break:normal;
    white-space:normal;
}
body.lbm-author-taxonomy .btb-book-grid{
    max-width:100%;
}
@media(max-width:800px){
    body.lbm-author-taxonomy main.lbm-author-profile{padding-inline:20px!important}
}

/* 2.0.7: the active theme now owns the complete page shell. Do not resize,
   wrap or reposition its header and footer from the plugin. */
body.lbm-author-taxonomy .lbm-native-author-template{
    margin-block-start:0;
    width:100%;
    max-width:none;
}
body.lbm-author-taxonomy .lbm-native-author-template>.wp-block-shortcode{
    width:100%;
    max-width:none;
}


/* 2.0.8: dedicated biography presentation inside the native block-theme shell. */
body.lbm-author-taxonomy .lbm-native-author-template{
    padding-block:clamp(32px,5vw,72px);
}
body.lbm-author-taxonomy .lbm-native-author-template>.wp-block-shortcode{
    width:100%;
    max-width:none;
}
body.lbm-author-taxonomy .lbm-author-profile{
    width:min(100%,1180px)!important;
    max-width:1180px!important;
    margin-inline:auto!important;
    padding-inline:clamp(18px,4vw,44px)!important;
    overflow:visible!important;
}
.lbm-author-hero-card{
    display:grid;
    grid-template-columns:minmax(210px,280px) minmax(0,1fr);
    gap:clamp(28px,5vw,68px);
    align-items:center;
    padding:clamp(24px,4vw,52px);
    border:1px solid color-mix(in srgb,currentColor 14%,transparent);
    border-radius:22px;
    background:color-mix(in srgb,currentColor 3%,transparent);
}
.lbm-author-portrait-wrap{min-width:0}
.lbm-author-hero-card .lbm-author-portrait{
    width:100%;
    height:auto;
    aspect-ratio:4/5;
    object-fit:cover;
    object-position:center top;
    border-radius:16px;
    display:block;
}
.lbm-author-portrait-placeholder{
    display:grid!important;
    place-items:center;
    font-size:clamp(4rem,9vw,7rem);
    background:color-mix(in srgb,currentColor 8%,transparent);
}
.lbm-author-hero-copy{min-width:0}
.lbm-author-hero-copy h1{
    margin:.35rem 0 .65rem;
    font-size:clamp(2.4rem,5vw,4.7rem);
    line-height:1.02;
    letter-spacing:-.035em;
}
.lbm-author-meta{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin:0 0 20px;
}
.lbm-author-meta span{
    border:1px solid color-mix(in srgb,currentColor 18%,transparent);
    border-radius:999px;
    padding:6px 11px;
    font-size:.84rem;
}
.lbm-author-hero-card .lbm-author-intro{
    max-width:720px;
    margin:0;
    font-size:clamp(1.05rem,1.5vw,1.25rem);
    line-height:1.7;
}
.lbm-author-links{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:24px;
}
.lbm-author-links a{
    display:inline-flex;
    align-items:center;
    min-height:42px;
    padding:8px 15px;
    border:1px solid currentColor;
    border-radius:999px;
    text-decoration:none;
}
.lbm-author-links a:hover{text-decoration:underline}
.lbm-author-section{
    display:grid;
    grid-template-columns:minmax(180px,280px) minmax(0,1fr);
    gap:clamp(24px,5vw,72px);
    align-items:start;
    margin:clamp(48px,7vw,90px) 0;
}
.lbm-author-section-heading h2{
    margin:.35rem 0 0;
    font-size:clamp(1.8rem,3vw,2.7rem);
    line-height:1.12;
}
.lbm-author-bio-copy{
    max-width:760px;
    font-size:1.08rem;
    line-height:1.8;
}
.lbm-author-bio-copy p:first-child{margin-top:0}
.lbm-author-quote{
    max-width:900px;
    margin:clamp(42px,6vw,76px) auto;
    padding:clamp(24px,4vw,42px);
    border:0;
    border-radius:18px;
    background:color-mix(in srgb,currentColor 5%,transparent);
    text-align:center;
    font-size:clamp(1.25rem,2.2vw,1.75rem);
    line-height:1.5;
}
.lbm-author-quote p{margin:0}
.lbm-author-books{grid-template-columns:1fr}
.lbm-author-books .lbm-author-section-heading{max-width:720px}
@media(max-width:760px){
    .lbm-author-hero-card,
    .lbm-author-section{grid-template-columns:1fr}
    .lbm-author-portrait-wrap{max-width:320px}
    .lbm-author-hero-card{padding:22px;border-radius:16px}
    .lbm-author-section{gap:20px}
}


/* Native block-theme author profile injection. */
.lbm-native-profile-slot {
    width: 100%;
    max-width: var(--wp--style--global--wide-size, 1200px);
    margin-inline: auto;
    padding-inline: var(--wp--preset--spacing--30, 1.25rem);
    box-sizing: border-box;
}
.lbm-native-profile-slot .lbm-author-profile {
    width: 100%;
    max-width: none;
    margin-inline: 0;
}


/* 2.1.0 Author Portal dashboard */
.lbm-dashboard-v2{width:min(100%,1180px);max-width:1180px;margin-inline:auto;padding:clamp(18px,3vw,34px);box-sizing:border-box}
.lbm-dashboard-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:clamp(22px,4vw,38px);border:1px solid color-mix(in srgb,currentColor 13%,transparent);border-radius:20px;background:color-mix(in srgb,currentColor 3%,transparent)}
.lbm-dashboard-identity{display:flex;align-items:center;gap:20px;min-width:0}.lbm-dashboard-identity h2{font-size:clamp(2rem,4vw,3.6rem);line-height:1.05;margin:.3rem 0 .65rem;letter-spacing:-.03em}.lbm-dashboard-avatar{width:96px;height:96px;flex:0 0 96px;border-radius:18px;overflow:hidden;background:color-mix(in srgb,currentColor 8%,transparent);display:grid;place-items:center}.lbm-dashboard-avatar img{width:100%;height:100%;object-fit:cover}.lbm-dashboard-avatar span{font-size:3rem;font-weight:700}.lbm-dashboard-actions,.lbm-dashboard-status-line{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.lbm-status-pill,.lbm-book-status,.lbm-report-status,.lbm-count-badge{display:inline-flex;align-items:center;border-radius:999px;padding:5px 10px;font-size:.78rem;font-weight:700;line-height:1.2;background:color-mix(in srgb,currentColor 8%,transparent)}.lbm-status-pill.is-published,.lbm-status-pill.is-active,.lbm-book-status.is-publish,.lbm-report-status.is-sent{background:#e8f5e9;color:#176b34}.lbm-status-pill.is-grace_period,.lbm-status-pill.is-awaiting_payment,.lbm-report-status.is-skipped{background:#fff4d6;color:#785900}.lbm-status-pill.is-suspended,.lbm-status-pill.is-cancelled,.lbm-report-status.is-error{background:#fde8e8;color:#9d1c20}
.lbm-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 17px;border:1px solid #111;border-radius:8px;background:#111;color:#fff!important;text-decoration:none!important;font-weight:700;cursor:pointer;box-sizing:border-box}.lbm-button:hover{opacity:.86}.lbm-button-secondary{background:transparent;color:inherit!important;border-color:color-mix(in srgb,currentColor 45%,transparent)}.lbm-button-quiet{background:transparent;color:inherit!important;border-color:transparent;text-decoration:underline!important}.lbm-button-small{min-height:34px;padding:6px 11px;font-size:.82rem}
.lbm-dashboard-nav{display:flex;gap:4px;overflow-x:auto;margin:20px 0 24px;padding:5px;border:1px solid color-mix(in srgb,currentColor 13%,transparent);border-radius:12px;background:color-mix(in srgb,currentColor 2%,transparent);scrollbar-width:thin}.lbm-dashboard-nav a{flex:0 0 auto;padding:10px 14px;border-radius:8px;color:inherit;text-decoration:none;font-weight:650}.lbm-dashboard-nav a:hover,.lbm-dashboard-nav a.is-active{background:#111;color:#fff}.lbm-dashboard-content{min-width:0}.lbm-panel{box-sizing:border-box}.lbm-panel-feature{padding:clamp(20px,3vw,34px)}.lbm-panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:20px}.lbm-panel-heading h3{margin:.3rem 0 .25rem;font-size:clamp(1.45rem,2.5vw,2rem)}.lbm-panel-heading p{margin:0;opacity:.72;max-width:720px}.lbm-stat-grid-v2{grid-template-columns:repeat(6,minmax(0,1fr))}.lbm-stat small{display:block;margin-top:5px;opacity:.62}.lbm-dashboard-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:18px}.lbm-progress{height:12px;border-radius:999px;overflow:hidden;background:color-mix(in srgb,currentColor 10%,transparent);margin:15px 0}.lbm-progress span{display:block;height:100%;border-radius:inherit;background:currentColor}.lbm-check-list{margin:10px 0 0;padding:0;list-style:none}.lbm-check-list li{position:relative;padding:5px 0 5px 22px}.lbm-check-list li:before{content:'○';position:absolute;left:0}.lbm-complete-message{font-weight:700}.lbm-muted{opacity:.65}.lbm-quick-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.lbm-quick-grid a{display:block;padding:16px;border:1px solid color-mix(in srgb,currentColor 13%,transparent);border-radius:10px;color:inherit;text-decoration:none}.lbm-quick-grid a:hover{border-color:currentColor}.lbm-quick-grid strong,.lbm-quick-grid span{display:block}.lbm-quick-grid span{margin-top:4px;font-size:.9rem;opacity:.68;line-height:1.4}.lbm-action-banner{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 18px;padding:16px 18px;border-radius:12px;background:#fff4d6;border-left:5px solid #c48b00;color:#4c3b00}.lbm-action-banner strong,.lbm-action-banner span{display:block}.lbm-action-banner span{margin-top:3px}
.lbm-book-cell{display:flex;align-items:center;gap:12px;min-width:220px}.lbm-book-cell img,.lbm-book-cover-placeholder{width:44px;height:60px;flex:0 0 44px;border-radius:4px;object-fit:cover}.lbm-book-cover-placeholder{display:grid;place-items:center;background:color-mix(in srgb,currentColor 8%,transparent);font-size:.65rem}.lbm-books-table td{vertical-align:middle}.lbm-sales-heading{align-items:end}.lbm-month-form{display:flex;align-items:end;gap:8px;flex-wrap:wrap}.lbm-month-form label{display:block;font-weight:700;font-size:.8rem}.lbm-month-form input{min-height:44px;padding:8px 10px;border:1px solid color-mix(in srgb,currentColor 25%,transparent);border-radius:8px}.lbm-stat-grid-sales{grid-template-columns:repeat(4,minmax(0,1fr))}.lbm-statement-actions{display:flex;align-items:center;gap:12px;margin-top:20px}.lbm-empty-state{padding:28px;border:1px dashed color-mix(in srgb,currentColor 25%,transparent);border-radius:12px;text-align:center}.lbm-empty-state h3{margin:0 0 8px}.lbm-empty-state p{margin:0;opacity:.7}
@media(max-width:1000px){.lbm-stat-grid-v2{grid-template-columns:repeat(3,minmax(0,1fr))}.lbm-dashboard-columns{grid-template-columns:1fr}.lbm-dashboard-hero{align-items:flex-start}.lbm-dashboard-actions{justify-content:flex-end}}
@media(max-width:720px){.lbm-dashboard-v2{padding-inline:16px}.lbm-dashboard-hero{display:block}.lbm-dashboard-actions{justify-content:flex-start;margin-top:18px}.lbm-dashboard-identity{align-items:flex-start}.lbm-dashboard-avatar{width:74px;height:74px;flex-basis:74px;border-radius:14px}.lbm-dashboard-avatar span{font-size:2.2rem}.lbm-stat-grid-v2,.lbm-stat-grid-sales{grid-template-columns:repeat(2,minmax(0,1fr))}.lbm-quick-grid{grid-template-columns:1fr}.lbm-panel-heading,.lbm-sales-heading{display:block}.lbm-month-form{margin-top:16px}.lbm-action-banner{display:block}.lbm-action-banner .lbm-button{margin-top:12px}}
@media(max-width:480px){.lbm-dashboard-identity{display:block}.lbm-dashboard-avatar{margin-bottom:14px}.lbm-stat-grid-v2,.lbm-stat-grid-sales{grid-template-columns:1fr}.lbm-dashboard-actions .lbm-button{width:100%}}


/* 2.1.1 simple front-end profile photograph uploader */
.lbm-media-picker{margin:0 0 28px}
.lbm-media-picker>label{display:block;font-weight:700;margin-bottom:9px}
.lbm-profile-dropzone{
    position:relative;
    display:grid;
    grid-template-columns:132px minmax(0,1fr);
    gap:22px;
    align-items:center;
    min-height:164px;
    padding:16px;
    border:2px dashed color-mix(in srgb,currentColor 28%,transparent);
    border-radius:14px;
    background:color-mix(in srgb,currentColor 2.5%,transparent);
    cursor:pointer;
    box-sizing:border-box;
    transition:border-color .18s ease,background .18s ease,transform .18s ease;
}
.lbm-profile-dropzone:hover,.lbm-profile-dropzone:focus-visible,.lbm-profile-dropzone.is-dragging{
    border-color:currentColor;
    background:color-mix(in srgb,currentColor 5%,transparent);
    outline:none;
}
.lbm-profile-dropzone.is-dragging{transform:scale(1.006)}
.lbm-profile-dropzone.has-upload-error{border-color:#b32d2e;background:#fff4f4}
.lbm-profile-upload-input{
    position:absolute!important;
    width:1px!important;
    height:1px!important;
    padding:0!important;
    margin:-1px!important;
    overflow:hidden!important;
    clip:rect(0,0,0,0)!important;
    white-space:nowrap!important;
    border:0!important;
}
.lbm-profile-dropzone .lbm-media-preview{
    width:132px;
    height:132px;
    padding:0;
    border-radius:14px;
    overflow:hidden;
    display:grid;
    place-items:center;
    background:color-mix(in srgb,currentColor 8%,transparent);
    box-sizing:border-box;
}
.lbm-profile-dropzone .lbm-media-preview img{width:100%;height:100%;object-fit:cover}
.lbm-upload-placeholder{font-size:3rem;font-weight:300;line-height:1;opacity:.45}
.lbm-upload-copy{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:0}
.lbm-upload-copy strong{font-size:1.15rem}
.lbm-upload-copy>span:not(.lbm-upload-button):not(.lbm-upload-status){opacity:.72}
.lbm-upload-button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:42px;
    margin:4px 0;
    padding:8px 15px;
    border-radius:8px;
    background:#111;
    color:#fff;
    font-weight:700;
}
.lbm-upload-copy small{opacity:.68}
.lbm-upload-status{min-height:1.35em;margin-top:3px;font-size:.88rem;font-weight:650}
.lbm-profile-dropzone.has-new-file .lbm-upload-status{color:#176b34}
.lbm-profile-dropzone.has-upload-error .lbm-upload-status{color:#9d1c20}
.lbm-media-picker>.lbm-clear-profile-image{margin-top:10px}
@media(max-width:620px){
    .lbm-profile-dropzone{grid-template-columns:1fr;text-align:center;padding:20px}
    .lbm-profile-dropzone .lbm-media-preview{width:150px;height:150px;margin-inline:auto}
    .lbm-upload-copy{align-items:center}
}
