/* Player workspace: illustrated identity, compact Prodromos authoring controls.
   Deliberately scoped away from the GM Screen, Game Table and statblock readers. */
.player-adventure.player-adventure {
    --hero-canvas: #191d21;
    --hero-panel: #25292d;
    --hero-border: #454b50;
    --hero-text: #ebeef5;
    --hero-muted: #b4bdc5;
    --hero-gold: #dbbc73;
    max-width: 1380px;
    margin: 0 auto;
    padding: 24px;
    color: var(--hero-text);
    font: 16px/1.5 Lato, Arial, sans-serif;
}
#page-wrapper:has(> main.player-adventure) { background: linear-gradient(180deg, #11191fd9, #15191ff2); }
#page-wrapper:has(> main.player-adventure) > .row:has(.wrapper-header) { display: none; }
.player-adventure.player-adventure > .wrapper-content { padding: 0; animation: none; }
.player-adventure.player-adventure .container { width: 100%; max-width: none; padding: 0; }
.player-adventure.player-adventure .hero-masthead { position: relative; isolation: isolate; min-height: 232px; display: flex; align-items: end; padding: 32px; overflow: hidden; background: #17222b; border-bottom: 2px solid var(--hero-gold); }
.player-adventure.player-adventure .hero-masthead-cover { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.player-adventure.player-adventure .hero-masthead:after { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #091219dc, #09121955), linear-gradient(0deg, #091219d9, transparent 85%); }
.player-adventure.player-adventure .hero-masthead-content { display: flex; align-items: center; gap: 24px; width: 100%; }
.player-adventure.player-adventure .hero-masthead-portrait { flex: 0 0 108px; width: 108px; height: 108px; border-radius: 50%; object-fit: cover; object-position: center 20%; border: 2px solid var(--hero-gold); }
.player-adventure.player-adventure .hero-masthead h1 { margin: 4px 0 10px; font: 500 clamp(28px, 3vw, 42px)/1.15 Georgia, serif; color: #fff; overflow-wrap: anywhere; }
.player-adventure.player-adventure .hero-masthead-eyebrow { color: var(--hero-gold); text-transform: uppercase; letter-spacing: .15em; font-size: 12px; font-weight: 700; margin: 0; }
.player-adventure.player-adventure .hero-masthead-subtitle { color: #dae1e5; margin: 0; font-size: 15px; }
.player-adventure.player-adventure .hero-workspace-nav { display: flex; gap: 0; flex-wrap: wrap; padding: 8px 12px; margin-bottom: 24px; background: #171d22; border: 1px solid var(--hero-border); border-top: 0; }
.player-adventure.player-adventure .hero-workspace-nav a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; font-size: 14px; color: var(--hero-muted); text-decoration: none; }
.player-adventure.player-adventure .hero-workspace-nav a[aria-current], .player-adventure.player-adventure .hero-workspace-nav a:hover, .player-adventure.player-adventure .hero-workspace-nav a:focus-visible { background: var(--hero-panel); color: #fff; }
.player-adventure.player-adventure .ibox { background: var(--hero-panel); border: 1px solid var(--hero-border); margin-bottom: 20px; }
.player-adventure.player-adventure .ibox-title { background: transparent; border: 0; border-bottom: 1px solid var(--hero-border); padding: 16px 20px; min-height: 0; }
.player-adventure.player-adventure .ibox-title h4, .player-adventure.player-adventure .ibox-title h5 { float: none; font-size: 18px; margin: 0; text-transform: none; }
.player-adventure.player-adventure .ibox-content { background: transparent; border: 0; padding: 20px; color: var(--hero-text); }
.player-adventure.player-adventure h2 { font-size: 24px; }
.player-adventure.player-adventure h3 { font-size: 20px; }
.player-adventure.player-adventure h4 { font-size: 18px; }
.player-adventure.player-adventure h5 { font-size: 16px; }
.player-adventure.player-adventure hr, .player-adventure.player-adventure .hr-line-dashed { border-color: var(--hero-border); }
.player-adventure.player-adventure .text-muted, .player-adventure.player-adventure small { color: var(--hero-muted) !important; }
.player-adventure.player-adventure .btn { border-radius: 0; border: 1px solid transparent; min-height: 36px; padding: 7px 12px; font: 400 14px/20px Lato, Arial, sans-serif; text-decoration: none; box-shadow: none; }
.player-adventure.player-adventure .btn-sm { min-height: 28px; padding: 3px 8px; font-size: 12px; }
.player-adventure.player-adventure .btn-success { background: #0b4b26; color: #ebeef5; }
.player-adventure.player-adventure .btn-danger, .player-adventure.player-adventure .btn-secondary, .player-adventure.player-adventure .btn-default { background: #353a3f; color: #ebeef5; border-color: var(--hero-border); }
.player-adventure.player-adventure .btn-danger:hover, .player-adventure.player-adventure .btn-danger:focus-visible { background: #9f0e11; }
.player-adventure.player-adventure .btn-secondary:hover, .player-adventure.player-adventure .btn-default:hover { background: #474e55; }
.player-adventure.player-adventure :is(a, button, input, textarea, select):focus { outline: none; box-shadow: none; }
.player-adventure.player-adventure label { display: inline-block; font-size: 14px; font-weight: 700; margin-bottom: 6px; color: var(--hero-muted); }
.player-adventure.player-adventure :is(input[type=text], input[type=number], input[type=url], input[type=email], input[type=search], textarea, select, .form-control, .select2-selection, .bootstrap-tagsinput) { background: transparent; color: var(--hero-text); border: 0; border-bottom: 1px solid #687078; border-radius: 0; box-shadow: none; font-size: 14px; padding: 8px 10px; min-height: 36px; max-width: 100%; }
.player-adventure.player-adventure :is(input, textarea)::placeholder { color: #aeb8c2; opacity: 1; }
.player-adventure.player-adventure select option { background: var(--hero-panel); color: var(--hero-text); }
.player-adventure.player-adventure textarea { width: 100%; line-height: 1.6; }
.player-adventure.player-adventure .select2-selection__rendered { color: var(--hero-text) !important; }
.player-adventure.player-adventure .form-group.row { text-align: left !important; margin-bottom: 20px !important; }
.player-adventure.player-adventure .form-group.row > .col-sm-4 { flex: 0 0 100%; max-width: 100%; padding-bottom: 0; }
.player-adventure.player-adventure .form-group.row > .col-sm-8 { flex: 0 0 100%; max-width: 100%; }
.player-adventure.player-adventure .context-menu .nav, .player-adventure.player-adventure .campaign-inner-tabs .nav { gap: 0; flex-wrap: wrap; border-bottom: 1px solid var(--hero-border); padding: 0; }
.player-adventure.player-adventure .context-menu .nav-link, .player-adventure.player-adventure .campaign-inner-tabs .nav-link { font-size: 14px; text-transform: none; letter-spacing: 0; padding: 12px 14px; color: var(--hero-muted); border: 1px solid transparent; text-decoration: none; }
.player-adventure.player-adventure .context-menu .nav-link.active, .player-adventure.player-adventure .campaign-inner-tabs .nav-link.active { background: var(--hero-panel); color: #fff; border-color: var(--hero-border); border-bottom-color: var(--hero-panel); }
.player-adventure.player-adventure .table { color: var(--hero-text); font-size: 14px; }
.player-adventure.player-adventure .table :is(th,td) { padding: 12px; border-color: var(--hero-border); vertical-align: middle; }
.player-adventure.player-adventure .table thead { background: var(--hero-canvas); color: var(--hero-muted); }
.player-adventure.player-adventure .table input[type=number] { width: 90px; }
.player-adventure.player-adventure #character-container { margin-top: 0; }
.player-adventure.player-adventure .character-sidebar-left { flex: 0 0 260px; max-width: 260px; }
.player-adventure.player-adventure .character-main-content { flex: 1; max-width: calc(100% - 260px); min-width: 0; }
/* Identity is presented once, above the content, rather than below a tall portrait. */
.player-adventure.player-adventure .character-information > .ibox-content > h3:first-child { display: none; }
.player-adventure.player-adventure .character-sidebar-left .img-fluid { max-height: 180px; width: 100%; object-fit: cover; }
.player-adventure.player-adventure #post-form { padding: 20px; margin-bottom: 20px; background: var(--hero-panel); border: 1px solid var(--hero-border); }
.player-adventure.player-adventure #post-form img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.player-adventure.player-adventure .social-feed-separated .social-feed-box { background: var(--hero-panel); border: 1px solid var(--hero-border); padding: 20px; }
.player-adventure.player-adventure .social-feed-separated { margin-bottom: 20px; }
.player-adventure.player-adventure #party-container > .col-md-4 > .mb-0 img { width: 120px; height: 120px; object-fit: contain; }
.player-adventure.player-adventure #party-container .ibox-content .row img { width: 64px; height: 64px; object-fit: cover; border-radius: 50%; }
.player-adventure.player-adventure .campaign-quest-card { padding: 16px; margin-bottom: 12px; background: var(--hero-canvas); border: 1px solid var(--hero-border); }
.player-adventure.player-adventure .journal-wrapper { max-width: 1000px; margin: auto; }
.player-adventure.player-adventure .journal-wrapper .journal-content { line-height: 1.8; }
@media (max-width: 1000px) {
    .player-adventure.player-adventure { padding: 16px; }
    .player-adventure.player-adventure .character-sidebar-left { flex-basis: 220px; max-width: 220px; }
    .player-adventure.player-adventure .character-main-content { max-width: calc(100% - 220px); }
}
@media (max-width: 767px) {
    .player-adventure.player-adventure { padding: 10px; }
    .player-adventure.player-adventure .hero-masthead { min-height: 200px; padding: 24px 18px; }
    .player-adventure.player-adventure .hero-masthead-content { gap: 16px; }
    .player-adventure.player-adventure .hero-masthead-portrait { width: 72px; height: 72px; flex-basis: 72px; }
    .player-adventure.player-adventure .hero-workspace-nav { flex-wrap: nowrap; overflow-x: auto; }
    .player-adventure.player-adventure .hero-workspace-nav a { flex-shrink: 0; padding: 10px; }
    .player-adventure.player-adventure .character-sidebar-left, .player-adventure.player-adventure .character-main-content { flex: 0 0 100%; max-width: 100%; }
    .player-adventure.player-adventure .character-main-content { order: -1; }
    .player-adventure.player-adventure .ibox-content { padding: 16px; }
    .player-adventure.player-adventure #character-assets-wrapper > .ibox-content { overflow-x: auto; }
    .player-adventure.player-adventure .table { min-width: 580px; }
}
@media (prefers-reduced-motion: reduce) { .player-adventure.player-adventure .animated { animation: none; } }

/* Legacy dark-theme rules use !important; keep field contrast consistent here. */
.player-adventure.player-adventure :is(input[type=text], input[type=number], input[type=url], input[type=email], input[type=search], textarea, select, .form-control, .select2-selection, .bootstrap-tagsinput) { background: transparent !important; color: var(--hero-text) !important; border: 0 !important; border-bottom: 1px solid #687078 !important; box-shadow: none !important; }
.player-adventure.player-adventure :is(input, textarea)::placeholder { color: #aeb8c2 !important; }
.player-adventure.player-adventure .ibox-content { background: var(--hero-panel); }
.player-adventure.player-adventure .hero-workspace-nav + .wrapper-content { margin-top: 0; }
.player-adventure.player-adventure > .hero-masthead { min-height: 184px; padding-top: 24px; padding-bottom: 24px; }
.player-adventure.player-adventure .character-information > .ibox-content > hr:first-of-type { display: none; }
.player-adventure.player-adventure .character-post-panel { box-shadow: none !important; }
.player-adventure.player-adventure #post-form { border: 0; padding: 0; margin: 0; }
.player-adventure.player-adventure .character-post-panel-actions { background: #1c2227 !important; border-top: 1px solid var(--hero-border); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.player-adventure.player-adventure .character-post-panel-post-types .row { gap: 6px; margin: 0; }
.player-adventure.player-adventure .character-post-panel-post-types .col-md-2 { width: auto; flex: 0 0 auto; padding: 0; }
.player-adventure.player-adventure .post-type-button { width: 40px; height: 36px; padding: 6px; background: #353a3f !important; color: #ebeef5 !important; }
.player-adventure.player-adventure .post-type-button.active, .player-adventure.player-adventure .post-type-button:hover, .player-adventure.player-adventure .post-type-button:focus-visible { background: #1e6d9e !important; }
.player-adventure.player-adventure .post-type-button i { font-size: 18px; }
.player-adventure.player-adventure .memory { padding: 20px; border: 1px solid var(--hero-border); background: var(--hero-canvas); overflow-wrap: anywhere; }
.player-adventure.player-adventure .memory h3 { font-size: 20px; }
.player-adventure.player-adventure .memory .label { display: inline-block; font-size: 12px; padding: 4px 8px; background: #353a3f; }
.player-adventure.player-adventure .campaign-quest-card { padding: 0; }
.player-adventure.player-adventure .campaign-quest-heading { display: flex; align-items: start; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.player-adventure.player-adventure .campaign-quest-tab { padding: 14px 20px; margin: 0; background: #0f1418; font-size: 18px; }
.player-adventure.player-adventure .campaign-quest-status { padding: 12px; }
.player-adventure.player-adventure .campaign-quest-status .label { border: 1px solid var(--hero-border); color: var(--hero-text); background: #30443a; font-size: 12px; padding: 5px 8px; border-radius: 0; }
.player-adventure.player-adventure .campaign-quest-body { padding: 20px; }
.player-adventure.player-adventure .campaign-quest-section-label { font-size: 12px; text-transform: uppercase; color: var(--hero-muted); }
.player-adventure.player-adventure .campaign-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 20px; border-top: 1px solid var(--hero-border); }
.player-adventure.player-adventure .campaign-card-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.player-adventure.player-adventure .campaign-card-context { font-size: 12px; }
.player-adventure.player-adventure .campaign-quest-empty { padding: 24px; border: 1px dashed var(--hero-border); color: var(--hero-muted); }
.player-adventure.player-adventure .campaign-quest-group-title { font-size: 14px; text-transform: none; color: var(--hero-muted); }
.player-adventure.player-adventure .campaign-quest-group + .campaign-quest-group-title { margin-top: 28px; }

.player-adventure.player-adventure .hero-journal-editor { max-width: 1000px; margin: 0 auto; }
.player-adventure.player-adventure .hero-journal-editor .ibox-content { background: var(--hero-panel) !important; padding: 24px; }
.player-adventure.player-adventure .hero-journal-editor .article-title { text-align: left !important; margin: 0 0 24px; }
.player-adventure.player-adventure .hero-journal-editor .article-title > span { display: block; font-size: 12px; margin-bottom: 12px; }
.player-adventure.player-adventure .hero-journal-editor #journal-title { font: 400 22px/1.4 Lato, Arial, sans-serif; height: auto; width: 100%; }
.player-adventure.player-adventure .hero-journal-editor .article-content { font-family: Lato, Arial, sans-serif; color: var(--hero-text); }
.player-adventure.player-adventure .hero-journal-editor textarea { margin-bottom: 24px; font: 400 16px/1.7 Lato, Arial, sans-serif; }
.player-adventure.player-adventure .hero-empty-state { padding: 40px 24px; text-align: center; background: var(--hero-panel); border: 1px solid var(--hero-border); }
.player-adventure.player-adventure .hero-empty-state > i { color: var(--hero-gold); font-size: 36px; }
.player-adventure.player-adventure .hero-empty-state p { color: var(--hero-muted); max-width: 420px; margin: 12px auto 0; }

.player-adventure .btn.btn-create {
    --action-rest: #0b4b26;
    --action-hover: #07612f;
    --action-pressed: #002e16;
}
.player-adventure .btn.btn-primary {
    --action-rest: #1e6d9e;
    --action-hover: #2483bd;
    --action-pressed: #185880;
}
.player-adventure.player-adventure .btn:is(.btn-create, .btn-primary) {
    background: var(--action-rest) !important;
    color: #ebeef5 !important;
}
.player-adventure.player-adventure .btn:is(.btn-create, .btn-primary):is(:hover, :focus-visible) {
    background: var(--action-hover) !important;
    color: #ebeef5 !important;
    text-decoration: none;
}
.player-adventure.player-adventure .btn:is(.btn-create, .btn-primary):active {
    background: var(--action-pressed) !important;
}
.player-adventure.player-adventure .btn:is(.btn-create, .btn-primary) i { color: inherit !important; }
.player-adventure.player-adventure .btn-danger { background-color: #47484a !important; color: #fff !important; }
.player-adventure.player-adventure .btn-danger:hover, .player-adventure.player-adventure .btn-danger:focus-visible { background-color: #9f0e11 !important; }
.player-adventure.player-adventure .btn:disabled { opacity: .5; cursor: not-allowed; }
.player-adventure.player-adventure .context-menu .nav-link.active { background: var(--hero-panel) !important; }
.player-adventure.player-adventure .hero-journal-editor #journal-title { text-align: left; }
.player-adventure.player-adventure .hero-journal-editor .text-muted { color: var(--hero-muted) !important; }

.player-adventure.player-adventure .post-type-button:not(.active):not(:hover):not(:focus-visible) { background-color: #353a3f !important; }

/* Illustrated player experience: portraits lead; form controls stay compact. */
.player-adventure.player-adventure { max-width: none; width: 100%; padding: 0 24px 32px; }
.player-adventure.player-adventure .hero-masthead { margin: 0 -24px 28px; border: 0; background: #12191f; }
.player-adventure.player-adventure .hero-masthead:after { background: linear-gradient(90deg,#11171b40,#11171bc9 68%),linear-gradient(0deg,#151a1f,transparent 85%); }
.player-adventure.player-adventure .hero-masthead--profile { min-height: 480px; padding: 0 6%; }
.player-adventure.player-adventure .hero-masthead--profile .hero-masthead-content { gap: clamp(28px,5vw,90px); align-items: center; }
.player-adventure.player-adventure .hero-masthead--profile .hero-masthead-portrait { width: clamp(300px,32vw,500px); flex: 0 0 clamp(300px,32vw,500px); height: 480px; border: 0; border-radius: 0; object-fit: cover; object-position: center 20%; mask-image: linear-gradient(to bottom,#000 80%,transparent); }
.player-adventure.player-adventure .hero-masthead--profile h1 { font-size: clamp(38px,4.5vw,72px); line-height: 1.06; max-width: 800px; text-shadow: 0 3px 18px #0008; }
.player-adventure.player-adventure .hero-masthead--profile .hero-masthead-subtitle { max-width: 520px; font-size: 17px; line-height: 1.7; }
.player-adventure.player-adventure .hero-masthead--section { min-height: 230px; padding: 28px 5%; }
.player-adventure.player-adventure .hero-masthead--section .hero-masthead-portrait { width: 150px; height: 180px; flex-basis: 150px; border-radius: 0; border: 0; mask-image: linear-gradient(to bottom,#000 70%,transparent); }
.player-adventure.player-adventure .ibox { border: 0; background: transparent; box-shadow: none; }
.player-adventure.player-adventure .ibox-title { padding: 12px 0; border: 0; background: transparent !important; }
.player-adventure.player-adventure .ibox-content { background: #191e22b8 !important; border: 0; }
.player-adventure.player-adventure .character-sidebar-left { flex-basis: 300px; max-width: 300px; }
.player-adventure.player-adventure .character-main-content { max-width: calc(100% - 300px); }
.player-adventure.player-adventure .character-sidebar-left .ibox-content { background: transparent !important; padding: 14px 12px; }
.player-adventure.player-adventure .context-menu { background: transparent !important; }
.player-adventure.player-adventure .context-menu .nav-link { border: 0; }
.player-adventure.player-adventure .context-menu .nav-link.active { background: #252b30 !important; }
.player-adventure.player-adventure .hero-card-art { position: relative; isolation: isolate; height: 195px; overflow: hidden; margin: 0 0 12px; background: #19232a; }
.player-adventure.player-adventure .hero-card-art:after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg,#161e24 2%,transparent 85%),linear-gradient(90deg,#101a2266,transparent); }
.player-adventure.player-adventure .hero-card-landscape { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; opacity: .8; }
.player-adventure.player-adventure .hero-card-character { position: absolute; right: 0; top: 0; width: 45%; height: 100%; object-fit: cover; object-position: center 20%; mask-image: linear-gradient(90deg,transparent,#000 30%); z-index: -2; }
.player-adventure.player-adventure .hero-card-kicker { position: absolute; bottom: 18px; left: 24px; right: 20px; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: #f0d99e; }
.player-adventure.player-adventure .campaign-quest-card { background: linear-gradient(120deg,#1e2b33,#171c21); border: 0; margin-bottom: 28px; }
.player-adventure.player-adventure .campaign-quest-card .hero-card-art { margin-bottom: 0; }
.player-adventure.player-adventure .campaign-quest-tab { font: 400 26px/1.3 Georgia,serif; background: transparent; padding: 18px 24px; }
.player-adventure.player-adventure .memory { border: 0; background: linear-gradient(120deg,#282a2e,#171c21); padding: 0 24px 24px; margin-bottom: 28px !important; }
.player-adventure.player-adventure .memory .hero-card-art { margin: 0 -24px 16px; }
.player-adventure.player-adventure .memory h3, .player-adventure.player-adventure .hero-journal-card h2 { font: 400 28px/1.3 Georgia,serif; }
.player-adventure.player-adventure .hero-journal-card .ibox-content { padding-top: 0; background: linear-gradient(120deg,#252832,#171c21) !important; }
.player-adventure.player-adventure .hero-journal-card .hero-card-art { margin: 0 -20px 20px; height: 240px; }
.player-adventure.player-adventure .hero-empty-state { border: 0; background: transparent; padding-top: 0; }
.player-adventure.player-adventure .hero-epic-advert { background: linear-gradient(145deg,#262e3b,#111923) !important; border: 1px solid #927b48 !important; padding: 24px 18px !important; color: #f5f1e8 !important; font-size: 15px; line-height: 1.65; }
.player-adventure.player-adventure .hero-epic-advert .hero-epic-badge { width: 88px; height: 88px; object-fit: contain; margin-bottom: 12px; }
.player-adventure.player-adventure .hero-epic-advert h3 { font: 400 25px/1.25 Georgia,serif; color: #f3d68c !important; }
.player-adventure.player-adventure .hero-epic-advert :is(p,li,strong,small) { color: #f5f1e8 !important; opacity: 1; }
.player-adventure.player-adventure .hero-epic-advert a:not(.btn) { color: #a9d9f2 !important; }
.player-adventure.player-adventure .hero-epic-advert .full-price { color: #c9ccd2; font-weight: 400; }
.player-adventure.player-adventure .hero-epic-advert .btn { white-space: normal; height: auto; }
@media(max-width:767px) {
 .player-adventure.player-adventure { padding: 0 16px 24px; }
 .player-adventure.player-adventure .hero-masthead { margin-left:-16px; margin-right:-16px; }
 .player-adventure.player-adventure .hero-masthead--profile { padding: 0 20px 24px; }
 .player-adventure.player-adventure .hero-masthead--profile .hero-masthead-content { flex-direction: column; gap: 0; align-items: start; }
 .player-adventure.player-adventure .hero-masthead--profile .hero-masthead-portrait { width: 100%; height: 380px; flex: none; object-fit: contain; }
 .player-adventure.player-adventure .hero-masthead--profile h1 { font-size: 38px; }
 .player-adventure.player-adventure .hero-masthead--section .hero-masthead-portrait { width: 85px; height: 120px; flex-basis: 85px; }
 .player-adventure.player-adventure .character-sidebar-left,.player-adventure.player-adventure .character-main-content { flex:0 0 100%; max-width:100%; }
 .player-adventure.player-adventure .hero-journal-card .hero-card-art { margin-left:-16px; margin-right:-16px; }
}
/* Profile-inspired reading tabs and companion roster. */
.player-adventure.player-adventure :is(.character-main-content,.hero-party-content) .context-menu .nav { border: 0; gap: 12px; padding: 8px 0 22px; }
.player-adventure.player-adventure :is(.character-main-content,.hero-party-content) .context-menu .nav-link { position:relative; background: transparent !important; border: 0 !important; padding: 10px 8px 17px; font: 400 18px/1.4 Georgia,serif; box-shadow: none !important; }
.player-adventure.player-adventure :is(.character-main-content,.hero-party-content) .context-menu .nav-link.active:after { content: '◇'; position:absolute; bottom:-3px; left:calc(50% - 15px); width:30px; text-align:center; color:#e4d3a1; font:16px/16px Georgia,serif; background:#161b20; }
.player-adventure.player-adventure :is(.character-main-content,.hero-party-content) .context-menu .nav-link.active { border-bottom:1px solid #b9aa86 !important; }
.player-adventure.player-adventure .hero-companions { margin: 24px 0 32px; }
.player-adventure.player-adventure .hero-campaign-cover { position:relative; display:block; min-height:190px; overflow:hidden; text-decoration:none; }
.player-adventure.player-adventure .hero-campaign-cover > img { width:100%; height:220px; max-height:none; object-fit:cover; }
.player-adventure.player-adventure .hero-campaign-cover > span { position:absolute; inset:0; display:flex; flex-direction:column; justify-content:end; padding:18px; background:linear-gradient(0deg,#10171ff5,transparent 90%); }
.player-adventure.player-adventure .hero-campaign-cover small { color:#efdbac !important; text-transform:uppercase; letter-spacing:.14em; font-size:11px; }
.player-adventure.player-adventure .hero-campaign-cover strong { color:#fff; font:400 25px/1.25 Georgia,serif; margin-top:6px; }
.player-adventure.player-adventure .hero-companion-party { padding:20px 0 0; }
.player-adventure.player-adventure .hero-companion-party h3 { margin:0 0 14px; font:400 20px/1.3 Georgia,serif; text-transform:none; }
.player-adventure.player-adventure .hero-companion-roster { display:flex; flex-wrap:wrap; gap:12px; margin-bottom:14px; }
.player-adventure.player-adventure .hero-companion-roster a { width:56px; height:56px; flex:0 0 56px; border-radius:50%; }
.player-adventure.player-adventure .hero-companion-roster img { display:block; width:56px; height:56px; min-width:56px; max-height:none; object-fit:cover; object-position:center 20%; border-radius:50%; padding:3px; border:1px solid #a6a49b; background:#131b21; }
.player-adventure.player-adventure .hero-companion-link { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 0; width:100%; color:#dae3eb; text-decoration:none; font-size:14px; border-bottom:1px solid #ffffff24; }
.player-adventure.player-adventure .hero-companion-link:hover,.player-adventure.player-adventure .hero-companion-link:focus-visible { background:#25323c; }
.player-adventure.player-adventure #character-container .hero-companions a:is(:hover,:focus-visible) { color:#fff!important; }
.player-adventure.player-adventure .hero-companion-credit { margin:12px 0 0; font-size:12px; color:#b2bdc6; }
.player-adventure.player-adventure .hero-card-kicker { top:18px; bottom:auto; }
.player-adventure.player-adventure .hero-card-title { position:absolute; bottom:18px; left:24px; right:24px; margin:0; color:#fff; font:400 29px/1.2 Georgia,serif; text-shadow:0 2px 8px #000; }
.player-adventure.player-adventure .hero-card-art { height:230px; }
.player-adventure.player-adventure .campaign-quest-heading { justify-content:flex-end; }
.player-adventure.player-adventure .hero-campaign-cover:focus-visible { filter:brightness(1.2); }

/* Profile composition: the portrait bridges the cover and a generous sidebar. */
.player-adventure.player-adventure .hero-affiliations { display:flex; flex-wrap:wrap; align-items:center; gap:8px 0; margin-top:18px; font-size:16px; }
.player-adventure.player-adventure .hero-affiliations a { color:#e4d3a5; text-decoration:none; }
.player-adventure .hero-masthead--profile .hero-masthead-eyebrow { padding-top:6px; font-size:14px; text-transform:none; letter-spacing:normal; }
.player-adventure .hero-masthead--profile .hero-masthead-eyebrow a { color:#eed8a5; text-decoration:none; }
.player-adventure .hero-masthead--profile .hero-masthead-eyebrow a:is(:hover,:focus-visible) { color:#fff!important; text-decoration:none; }
.player-adventure.player-adventure .hero-affiliations a+a:before { content:'◆'; display:inline-block; margin:0 12px; color:#a6915f; font-size:7px; vertical-align:middle; }
.player-adventure.player-adventure .hero-masthead--profile .hero-affiliations a:is(:hover,:focus-visible) { color:#fff!important; text-decoration:underline; }
.player-adventure.player-adventure .hero-masthead--profile { min-height:340px; padding:0 32px; overflow:visible; margin-bottom:24px; }
.player-adventure.player-adventure .hero-masthead--profile .hero-masthead-content { min-height:340px; padding:90px 0 32px 380px; }
.player-adventure.player-adventure .hero-masthead--profile .hero-masthead-portrait { position:absolute; left:32px; top:100px; width:330px; height:390px; min-width:0; object-fit:cover; object-position:center 20%; mask-image:none; border:1px solid #a6915f; box-shadow:0 10px 30px #0009; }
.player-adventure.player-adventure .hero-masthead--profile h1 { font-size:clamp(36px,4vw,62px); }
.player-adventure.player-adventure .character-sidebar-left { flex:0 0 380px; max-width:380px; padding-top:150px; }
.player-adventure.player-adventure .character-main-content { max-width:calc(100% - 380px); }
.player-adventure.player-adventure .social-feed-separated { position:relative; margin:0 0 20px; padding:0; }
.player-adventure.player-adventure .social-feed-separated > .social-avatar { position:absolute; left:20px; top:20px; width:48px; min-width:48px; margin:0; float:none; z-index:1; }
.player-adventure.player-adventure .social-feed-separated > .social-avatar img { width:48px!important; height:48px!important; min-width:48px; max-width:48px; object-fit:cover; border-radius:50%!important; }
.player-adventure.player-adventure .social-feed-separated > .social-feed-box { display:flex; flex-direction:column; margin:0; padding:20px; border:0; border-bottom:1px solid #ffffff18; background:linear-gradient(120deg,#20262bea,#151b20e6); box-shadow:none; }
.player-adventure.player-adventure .social-feed-box:before,.player-adventure.player-adventure .social-feed-box:after { display:none; }
.player-adventure.player-adventure .social-feed-box > .social-avatar { order:-3; min-height:52px; padding:0 32px 12px 64px; margin:0 0 12px; line-height:1.5; }
.player-adventure.player-adventure .social-feed-box > .social-avatar small { font-size:12px; }
.player-adventure.player-adventure .social-feed-box > .social-action { position:absolute; top:20px; right:20px; }
.player-adventure.player-adventure .social-feed-box > .social-body { padding:0; }
.player-adventure.player-adventure .social-feed-box-payload { font-size:16px; line-height:1.7; margin-bottom:16px; }
.player-adventure.player-adventure .social-feed-box .post-actions-wrapper { display:flex; gap:16px; margin-top:16px; }
.player-adventure.player-adventure .social-feed-box .post-actions-wrapper .btn { font-size:13px; padding:4px 0; min-height:28px; background:transparent; border:0; }
.player-adventure.player-adventure .social-feed-box-meta.meta-journal { padding:0; margin:0 0 18px; background:transparent; color:#eee; }
.player-adventure.player-adventure .hero-stream-journal { display:block; position:relative; text-decoration:none; }
.player-adventure.player-adventure .hero-stream-journal .hero-card-art { height:210px; margin:0; }
.player-adventure.player-adventure .hero-stream-journal .hero-card-title { font-size:30px; bottom:40px; }
.player-adventure.player-adventure .hero-stream-read { position:absolute; left:24px; bottom:16px; color:#e4d3a5; font-size:13px; }
.character-cover-field [hidden] { display:none!important; }
@media(max-width:1000px) {
 .player-adventure.player-adventure .character-sidebar-left { flex-basis:300px; max-width:300px; }
 .player-adventure.player-adventure .character-main-content { max-width:calc(100% - 300px); }
 .player-adventure.player-adventure .hero-masthead--profile .hero-masthead-portrait { width:260px; }
 .player-adventure.player-adventure .hero-masthead--profile .hero-masthead-content { padding-left:300px; }
}
@media(max-width:767px) {
 .player-adventure.player-adventure .hero-masthead--profile { padding:24px; }
 .player-adventure.player-adventure .hero-masthead--profile .hero-masthead-content { padding:0; align-items:center; }
 .player-adventure.player-adventure .hero-masthead--profile .hero-masthead-portrait { position:static; width:230px; height:300px; flex-basis:auto; }
 .player-adventure.player-adventure .character-sidebar-left,.player-adventure.player-adventure .character-main-content { flex:0 0 100%; max-width:100%; padding-top:0; }
 .player-adventure.player-adventure .social-feed-separated > .social-avatar { left:16px; top:16px; }
 .player-adventure.player-adventure .social-feed-separated > .social-feed-box { padding:16px; }
}

.player-adventure .hero-memory-help a.text-info[data-toggle="collapse"] {
    color: var(--wa-colors-help-bright, #46ab93) !important;
    text-decoration: none;
}
.player-adventure .hero-memory-help a.text-info[data-toggle="collapse"]:is(:hover, :focus-visible) {
    color: var(--wa-colors-help-dark, #305e53) !important;
}
.player-adventure.player-adventure .hero-profile-help { padding:24px 12px; font-size:14px; line-height:1.7; }
.player-adventure.player-adventure .hero-profile-help a { color:#46AB93; }
.player-adventure.player-adventure .hero-profile-help a:hover { color:#80cfba; }
.player-adventure.player-adventure .hero-masthead--profile { min-height:440px; background:transparent; }
.player-adventure.player-adventure .hero-masthead--profile .hero-masthead-cover { mask-image:linear-gradient(to bottom,#000 65%,transparent 100%); }
.player-adventure.player-adventure .hero-masthead--profile:after { background:linear-gradient(90deg,transparent,#0005); mask-image:linear-gradient(to bottom,#000 65%,transparent); }
.player-adventure.player-adventure .hero-masthead--profile .hero-masthead-content { min-height:440px; padding-top:160px; }
.player-adventure.player-adventure .hero-masthead--profile .hero-masthead-portrait { top:200px; }
@media(max-width:767px) { .player-adventure.player-adventure .hero-masthead--profile .hero-masthead-content { padding-top:0; } }
@media(min-width:768px) {
 .player-adventure.player-adventure .character-main-content { padding-left:36px; }
}
.player-adventure.player-adventure .context-menu .nav-link { position:relative; padding-bottom:12px; border-bottom:2px solid transparent; }
.player-adventure.player-adventure .context-menu .nav-link.active { border-bottom-color:#d4b86e; }
.player-adventure.player-adventure .context-menu .nav-link:before,
.player-adventure.player-adventure .context-menu .nav-link:after { content:none!important; display:none!important; }
.player-adventure.player-adventure .post-actions-wrapper .btn { flex:0 0 auto; width:auto; }

.player-adventure.player-adventure .legacy-stream-journal { display:none; }

.player-adventure.player-adventure .hero-companion-link { min-height:36px; padding:8px 12px; margin:12px 0; background:#252b30; border:1px solid #444b50; font-size:14px; }
.player-adventure.player-adventure .hero-companion-link i { font-size:12px; }
.player-adventure.player-adventure .hero-companion-credit a { color:#b9c8d1; text-decoration:none; }
.player-adventure.player-adventure .hero-companion-credit a:hover { text-decoration:underline; color:#fff; }

.player-adventure.player-adventure .hero-profile-details { display:grid; gap:14px; margin:0 0 24px; }
.player-adventure.player-adventure .hero-profile-detail { display:grid; grid-template-columns:20px minmax(0,1fr); column-gap:10px; align-items:start; line-height:24px; margin:0; }
.player-adventure.player-adventure .hero-profile-detail > i { width:20px; text-align:center; line-height:24px; }
.player-adventure.player-adventure .hero-location-change { display:inline-block; margin-left:10px; color:#a8b1b9; font-size:12px; white-space:nowrap; }
/* Spacious profile shell and editorial section layouts. */
.player-adventure.player-adventure:has(#character-container) { max-width:none; margin-inline:auto; }
.player-adventure.player-adventure .hero-section-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; margin:28px 0; }
.player-adventure.player-adventure .hero-section-heading h2 { font:400 32px/1.25 Georgia,serif; margin:6px 0 0; }
.player-adventure.player-adventure .hero-section-kicker { font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:#c4af79; }
.player-adventure.player-adventure .hero-dossier { padding:0 12px 28px; }
.player-adventure.player-adventure .hero-dossier-intro { font:400 22px/1.6 Georgia,serif; color:#e2d9c8; }
.player-adventure.player-adventure .hero-dossier-story { font-size:16px; line-height:1.9; max-width:75ch; }
.player-adventure.player-adventure .hero-facts { display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:20px 28px; margin:28px 0; padding:24px 0; border-block:1px solid #ffffff20; }
.player-adventure.player-adventure .hero-facts dt { color:#aeb8bd; font-size:12px; font-weight:400; margin:0 0 4px; }
.player-adventure.player-adventure .hero-facts dd { font-size:17px; margin:0; }
.player-adventure.player-adventure .hero-dossier-sections { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr)); gap:28px; }
.player-adventure.player-adventure .hero-dossier-section { padding:22px 0; border-top:1px solid #b9a06b66; line-height:1.8; }
.player-adventure.player-adventure .hero-dossier-section h3 { font:400 26px/1.3 Georgia,serif; margin:0 0 22px; color:#e3d3b0; }
.player-adventure.player-adventure .hero-dossier-section h5 { margin:20px 0 6px; font-size:14px; }
.player-adventure.player-adventure .hero-journal-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(300px,100%),1fr)); gap:24px; }
.player-adventure.player-adventure .hero-journal-preview { background:#161d22d9; min-width:0; }
.player-adventure.player-adventure .hero-journal-preview .hero-card-art { height:210px; margin:0; }
.player-adventure.player-adventure .hero-journal-preview .hero-card-title { font-size:27px; }
.player-adventure.player-adventure .hero-journal-preview-body { padding:20px; }
.player-adventure.player-adventure .hero-journal-preview-body small { color:#a9b4bc; font-size:12px; }
.player-adventure .hero-journal-excerpt { margin:14px 0; line-height:1.7; max-height:5.1em; overflow:hidden; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; }
.player-adventure .hero-journal-excerpt p { margin:0; }
.player-adventure.player-adventure .hero-journal-preview-body > a { color:#dfc88b; font-size:14px; }
.player-adventure.player-adventure .hero-history-list { list-style:none; padding:0; margin:0; }
.player-adventure.player-adventure .hero-history-list > li { position:relative; display:grid; grid-template-columns:44px 1fr; gap:20px; padding-bottom:30px; }
.player-adventure.player-adventure .hero-history-list > li:before { content:''; position:absolute; top:40px; bottom:0; left:21px; width:1px; background:#a8905860; }
.player-adventure.player-adventure .hero-history-list > li:last-child:before { display:none; }
.player-adventure.player-adventure .hero-history-marker { width:44px; height:44px; display:grid; place-items:center; border:1px solid #a8905860; color:#d6ba79; background:#171f24; }
.player-adventure.player-adventure .hero-history-list article { padding:0 0 24px; border-bottom:1px solid #ffffff18; line-height:1.8; }
.player-adventure.player-adventure .hero-history-list small { display:block; color:#adbac1; font-size:12px; margin-bottom:8px; }
.player-adventure.player-adventure .hero-history-list h3 { font:400 26px/1.4 Georgia,serif; margin:0 0 12px; }
.player-adventure.player-adventure .hero-section-empty { padding:32px 0; color:#b9c4cb; line-height:1.8; }
.player-adventure.player-adventure .hero-sheet-choices { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr)); gap:28px; }
.player-adventure.player-adventure .hero-sheet-choices form { padding:24px; background:#1a2229; }
.player-adventure.player-adventure .hero-sheet-choices button { margin-top:20px; }
/* Stream: quiet editorial entries, with artwork reserved for story previews. */
.player-adventure.player-adventure .social-feed-separated > .social-feed-box { padding:24px 0 28px 64px; background:transparent; border-bottom:1px solid #ffffff26; }
.player-adventure.player-adventure .social-feed-separated > .social-avatar { left:0; top:24px; }
.player-adventure.player-adventure .social-feed-box > .social-avatar { padding:0 36px 0 0; min-height:48px; margin:0 0 10px; }
.player-adventure.player-adventure .social-feed-box > .social-avatar > small { display:block; line-height:1.5; }
.player-adventure.player-adventure .social-feed-box > .social-avatar > small:first-of-type { display:inline; }
.player-adventure.player-adventure .social-feed-box > .social-action { right:0; top:24px; }
.player-adventure.player-adventure .social-feed-box-payload { line-height:1.8; }
.player-adventure.player-adventure .hero-stream-journal .hero-card-art { height:180px; }
.player-adventure.player-adventure .hero-stream-journal .hero-card-kicker { text-align:left; }
.player-adventure.player-adventure .hero-stream-journal .hero-card-title { text-align:left; font-size:26px; }
@media(max-width:767px) {
 .player-adventure.player-adventure .hero-section-heading { flex-wrap:wrap; }
 .player-adventure.player-adventure .social-feed-separated > .social-feed-box { padding-left:0; }
 .player-adventure.player-adventure .social-feed-box > .social-avatar { padding-left:62px; }
}

/* Full-width artwork surrounds a centered profile; portrait and sidebar share a width. */
.player-adventure.player-adventure:has(#character-container) { --profile-sidebar:400px; --profile-gap:48px; }
.player-adventure.player-adventure #character-container { max-width:1752px; margin-inline:auto; }
.player-adventure.player-adventure .hero-masthead--profile .hero-masthead-content { position:relative; max-width:1752px; margin-inline:auto; padding-left:calc(var(--profile-sidebar) + var(--profile-gap)); }
.player-adventure.player-adventure .hero-masthead--profile .hero-masthead-portrait { left:0; width:var(--profile-sidebar); height:440px; }
.player-adventure.player-adventure .character-sidebar-left { flex:0 0 var(--profile-sidebar); max-width:var(--profile-sidebar); padding:200px 0 0; }
.player-adventure.player-adventure .character-main-content { flex:1; min-width:0; max-width:calc(100% - var(--profile-sidebar)); padding:0 0 0 var(--profile-gap); }
.player-adventure.player-adventure .character-information > .ibox-content { padding-inline:0; }
.player-adventure.player-adventure .hero-profile-details { gap:20px; margin-bottom:0; }
.player-adventure.player-adventure .hero-companions { margin-top:24px; }
.player-adventure.player-adventure .hero-campaign-cover { margin:-18px -18px 0; }
.player-adventure.player-adventure .character-sidebar-left .ibox-content.hero-epic-advert { background:radial-gradient(ellipse at top,#3b4054 0,transparent 65%),repeating-linear-gradient(130deg,#ffffff03 0 2px,transparent 2px 6px),#171c28 !important; box-shadow:0 12px 32px #0007; }
@media(max-width:1100px) {
 .player-adventure.player-adventure:has(#character-container) { --profile-sidebar:320px; --profile-gap:32px; }
 .player-adventure.player-adventure .hero-profile-details,.player-adventure.player-adventure .hero-companions { padding:22px; }
}
@media(max-width:767px) {
 .player-adventure.player-adventure .hero-masthead--profile .hero-masthead-content { padding:0; }
 .player-adventure.player-adventure .hero-masthead--profile .hero-masthead-portrait { width:100%; max-width:400px; height:400px; }
 .player-adventure.player-adventure .character-sidebar-left,.player-adventure.player-adventure .character-main-content { flex:0 0 100%; max-width:100%; padding:0; }
}

.player-adventure.player-adventure .hero-masthead--profile { padding-inline:24px; }

/* Exact creator-profile metallic frame and texture. */
.player-adventure.player-adventure :is(.hero-profile-details,.hero-companions,.hero-journal-preview,.hero-journal-list-card) {
    position:relative;
    isolation:isolate;
    border:0;
    background:linear-gradient(to right,#212529,rgba(33,37,41,0)),url('https://worldanvil-static.sfo2.cdn.digitaloceanspaces.com/images/unthemed_desktop_widget_background_texture.png') repeat;
    background-color:#212529;
    box-shadow:0 10px 24px -12px #0009,0 2px 4px #0005,inset 0 1px 0 #fff1;
}
.player-adventure.player-adventure :is(.hero-profile-details,.hero-companions,.hero-journal-preview,.hero-journal-list-card)::before,
.player-adventure.player-adventure .character-post-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  background: linear-gradient(
    135deg,
    #bac5cf 0%,
    #505b65 16%,
    #12171d 33%,
    #606d79 49%,
    #dae3ea 51%,
    #303a44 70%,
    #090d12 87%,
    #788793 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 10;
}
.player-adventure.player-adventure :is(.hero-profile-details,.hero-companions,.hero-journal-preview,.hero-journal-list-card)::after,
.player-adventure.player-adventure .character-post-panel::after {
  --interim-widget-corners:
    url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22white%22%20transform%3D%22rotate%28180%2012%2012%29%22%20d%3D%22M1%2023H23V1C22%2018%2018%2022%201%2023Z%22%2F%3E%3C%2Fsvg%3E")
      top left / 24px 24px no-repeat,
    url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22white%22%20transform%3D%22rotate%28270%2012%2012%29%22%20d%3D%22M1%2023H23V1C22%2018%2018%2022%201%2023Z%22%2F%3E%3C%2Fsvg%3E")
      top right / 24px 24px no-repeat,
    url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22white%22%20transform%3D%22rotate%2890%2012%2012%29%22%20d%3D%22M1%2023H23V1C22%2018%2018%2022%201%2023Z%22%2F%3E%3C%2Fsvg%3E")
      bottom left / 24px 24px no-repeat,
    url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22white%22%20transform%3D%22%22%20d%3D%22M1%2023H23V1C22%2018%2018%2022%201%2023Z%22%2F%3E%3C%2Fsvg%3E")
      bottom right / 24px 24px no-repeat;
  content: "";
  position: absolute;
  inset: 5px;
  background: linear-gradient(
    135deg,
    #9aa9b6 0%,
    #303a44 22%,
    #687885 48%,
    #bac7d1 51%,
    #27313a 75%,
    #768794 100%
  );
  -webkit-mask: var(--interim-widget-corners);
  mask: var(--interim-widget-corners);
  pointer-events: none;
  z-index: 10;
}

.player-adventure.player-adventure :is(.hero-profile-details,.hero-companions,.hero-journal-preview,.hero-journal-list-card) { padding:28px; }

.character-image-preview {display:block;width:100%;height:220px;object-fit:contain;background:#15191c;margin-bottom:16px}.character-image-preview[hidden]{display:none}

.player-adventure.player-adventure .character-post-panel-post-types { display:flex; flex-wrap:wrap; align-items:center; gap:16px; }
.player-adventure.player-adventure .character-post-panel-post-types > .row { flex:1; margin:0; }
.player-adventure.player-adventure [data-post-visibility] { margin-left:auto; white-space:nowrap; }
.player-adventure.player-adventure .character-post-panel-actions { justify-content:flex-end; }

/* The portrait keeps its original proportions and participates in sidebar flow. */
.player-adventure.player-adventure .character-sidebar-left { padding-top:0; }
.player-adventure.player-adventure .hero-affiliations { margin-top:8px; }
.player-adventure.player-adventure .hero-affiliations a+a:before { margin-inline:8px; }
.player-adventure.player-adventure .hero-masthead--profile h1 { margin-bottom:0; }
@media(max-width:767px) {
 .player-adventure.player-adventure .hero-masthead--profile .hero-masthead-content { min-height:300px; }
}

.player-adventure.player-adventure .hero-masthead--section { background:transparent; }
.player-adventure.player-adventure .hero-masthead--section .hero-masthead-cover { mask-image:linear-gradient(to bottom,#000 45%,transparent 100%); }
.player-adventure.player-adventure .hero-masthead--section:after { background:linear-gradient(90deg,#0002,#0006); mask-image:linear-gradient(to bottom,#000 45%,transparent 100%); }

/* Cover meets the metallic frame; only the content below is inset. */
.player-adventure.player-adventure .hero-campaign-cover { margin:-26px -26px 0; }
/* Shared profile actions: Follow and Join the Session. */
.player-adventure.player-adventure .hero-profile-action {
 display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:44px;
 box-sizing:border-box;padding:12px 20px;border:0;border-radius:0;
 background:var(--chakra-colors-primary-500,#1e6d9e);color:#ebeef5!important;
 font:700 16px/1.25 Lato,Arial,sans-serif;text-decoration:none;box-shadow:none;
 transition:background-color .15s ease;
}
.player-adventure.player-adventure .hero-profile-action:is(:hover,:focus-visible){background:#2483bd;color:#fff!important;text-decoration:none;outline:none;}
.player-adventure.player-adventure .hero-profile-action:active{background:#185880;}
.player-adventure.player-adventure .hero-profile-action i{color:inherit!important;font-size:18px;}
.player-adventure.player-adventure .hero-follow-button{margin:0 0 24px;}
.player-adventure.player-adventure .hero-join-session{margin-top:16px;}


/* Illustrated journal art fades into the page itself. */
.player-adventure.player-adventure .hero-card-art { background:transparent; }
.player-adventure.player-adventure .hero-card-art:after { background:linear-gradient(90deg,#0007,transparent); mask-image:linear-gradient(#000,transparent); }
.player-adventure.player-adventure .hero-card-landscape { mask-image:linear-gradient(#000 20%,transparent 100%); }
.player-adventure.player-adventure .hero-card-character { mask-image:linear-gradient(#000 20%,transparent 100%),linear-gradient(90deg,transparent,#000 30%); mask-composite:intersect; }
.player-adventure.player-adventure .hero-journal-card .ibox-content { background:transparent!important; }
/* Match the GM/Game Table memory and quest surfaces. */
.player-adventure.player-adventure .hvc-memory-card { background:#25282b; border:1px solid #42494f; padding:18px; margin:14px 0; }
.player-adventure.player-adventure .hvc-memory-card h3 { font:600 20px/1.4 Lato,sans-serif; }
.player-adventure.player-adventure .lw-quest { padding:0; margin:0 0 16px; border:1px solid #080909; background:linear-gradient(135deg,#202427,#101214); color:#e9eaf0; }
.player-adventure.player-adventure .lw-quest>header { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding:0; }
.player-adventure.player-adventure .lw-quest>header h3 { background:#0a0a0a; clip-path:polygon(0 0,100% 0,calc(100% - 10px) 100%,0 100%); padding:10px 30px 10px 16px; margin:0; font:600 18px/24px Lato,sans-serif; }
.player-adventure.player-adventure .lw-quest-body { padding:20px; line-height:1.6; }
.player-adventure.player-adventure .hero-memory-form { padding:28px; background:#1c2226; border-top:2px solid #8e7949; }
.player-adventure.player-adventure .hero-memory-edit { max-width:1000px; margin:auto; }
.player-adventure.player-adventure .hero-memory-form label { margin-bottom:8px; }
.player-adventure.player-adventure .hero-memory-form .form-row { margin-bottom:16px; }
.player-adventure.player-adventure .hero-form-actions { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-top:20px; }
.player-adventure.player-adventure .hero-form-actions button { margin-left:auto; }
.player-adventure.player-adventure .hero-equipment-scroll { overflow-x:auto; }
.player-adventure.player-adventure .hero-equipment-table { width:100%; background:#191e22; }
.player-adventure.player-adventure .hero-equipment-table th { padding:14px 16px; color:#b8c2ca; font-size:13px; text-transform:uppercase; letter-spacing:.06em; background:#11171b; }
.player-adventure.player-adventure .hero-equipment-table td { padding:14px 16px; vertical-align:middle; border-bottom:1px solid #ffffff12; }
.player-adventure.player-adventure .hero-equipment-table tbody tr:hover { background:#ffffff05; }
.player-adventure.player-adventure .hero-equipment-table input { width:90px; }
.player-adventure.player-adventure .hero-equipment-table td:last-child { text-align:right; }
.player-adventure.player-adventure .hero-equipment-table tfoot { background:#11171b; }
.player-adventure.player-adventure .character-assets-form-wrapper { padding-top:16px; }
.player-adventure.player-adventure #character-item-form-add .form-row:last-child { text-align:right; }
@media(max-width:700px){.player-adventure #character-item-form-add .col-6,.player-adventure #character-item-form-add .col-2 {flex:0 0 50%;max-width:50%;}}

.player-adventure.player-adventure .hero-party-masthead { margin-bottom:0; }
.player-adventure.player-adventure .hero-party-crest { width:160px; height:180px; object-fit:contain; flex-shrink:0; }
.player-adventure.player-adventure .hero-party-page { display:grid; grid-template-columns:360px minmax(0,1fr); gap:48px; max-width:1752px; margin:0 auto; }
.player-adventure.player-adventure .hero-party-roster>h2 { font:400 28px/1.3 Georgia,serif; margin:0 0 24px; }
.player-adventure.player-adventure .hero-party-member { padding:24px; margin-bottom:24px; background:linear-gradient(130deg,#252b30e8,#151a1ed9); border-top:1px solid #b9a56f66; }
.player-adventure.player-adventure .hero-party-member-identity { display:flex; align-items:center; gap:16px; text-decoration:none; }
.player-adventure.player-adventure .hero-party-member-identity img { width:72px; height:72px; flex:0 0 72px; border-radius:50%; object-fit:cover; border:2px solid #c5b783; }
.player-adventure.player-adventure .hero-party-member h3 { font:400 23px/1.3 Georgia,serif; margin:0; color:#eee; }
.player-adventure.player-adventure .hero-party-member p { margin:18px 0; color:#b7c1c8; }
.player-adventure.player-adventure .hero-party-journal-link { display:flex; align-items:center; gap:10px; padding:12px 0; border-top:1px solid #ffffff16; color:#dfc98a; }
.player-adventure.player-adventure .hero-party-journal-link i:last-child { margin-left:auto; font-size:11px; }
.player-adventure.player-adventure .hero-party-content { min-width:0; }
.player-adventure.player-adventure .hero-party-content .context-menu { margin-bottom:28px; }
.player-adventure.player-adventure .hero-party-notes { padding:32px; background:#192126de; line-height:1.7; }
.player-adventure.player-adventure .hero-party-notes h2 { font:400 30px/1.3 Georgia,serif; }
@media(max-width:1000px){.player-adventure.player-adventure .hero-party-page {grid-template-columns:1fr;gap:28px;}.player-adventure .hero-party-roster {display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:20px;}.player-adventure .hero-party-roster>h2 {grid-column:1/-1;}.player-adventure.player-adventure .hero-party-member {margin:0;}}

.player-adventure.player-adventure .hero-journal-editor .codex-editor__redactor { min-height:280px; padding-bottom:50px!important; }
.player-adventure.player-adventure .hero-memory-form #memory-content { min-height:170px; }

/* Journal previews use the profile's shared metallic frame and textured body. */
.player-adventure.player-adventure .hero-journal-preview { padding:0; display:flex; flex-direction:column; }
.player-adventure.player-adventure .hero-journal-preview > a { display:block; margin:2px 2px 0; }
.player-adventure.player-adventure .hero-journal-preview .hero-card-title { bottom:40px; }
.player-adventure.player-adventure .hero-journal-preview-body { padding:24px; display:flex; flex-direction:column; flex:1; }
.player-adventure.player-adventure .hero-journal-preview-body > a { margin-top:auto; padding-top:8px; }

.player-adventure.player-adventure .hero-quest-editor { max-width:960px; margin:0 auto 40px; padding:28px; background:#222324; }
.player-adventure.player-adventure .hero-quest-editor-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:24px; padding-bottom:16px; border-bottom:1px solid #ffffff20; }
.player-adventure.player-adventure .hero-quest-editor-heading h2 { margin:0; font-size:22px; }
.player-adventure.player-adventure .hero-quest-editor-heading span { color:#aeb7bd; font-size:14px; }
.player-adventure.player-adventure .hero-quest-editor .form-group { margin-bottom:24px; }
.player-adventure.player-adventure .hero-quest-editor-columns { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.player-adventure.player-adventure .hero-quest-editor label { margin-bottom:8px; font-size:14px; }
.player-adventure.player-adventure .hero-quest-editor .codex-editor__redactor { min-height:130px; padding-bottom:32px!important; }
.player-adventure.player-adventure .hero-quest-editor-details { margin:24px 0; border-top:1px solid #ffffff20; }
.player-adventure.player-adventure .hero-quest-editor-details summary { padding:18px 0; cursor:pointer; color:#b8c4cc; font-size:16px; }
.player-adventure.player-adventure .hero-quest-editor-actions { display:flex; justify-content:space-between; align-items:center; gap:16px; border-top:1px solid #ffffff20; padding-top:20px; }
@media(max-width:600px){.player-adventure.player-adventure .hero-quest-editor {padding:20px;}.player-adventure.player-adventure .hero-quest-editor-columns {grid-template-columns:1fr;gap:0;}}

.player-adventure.player-adventure .hero-journal-list-card { margin:0 0 24px; padding:28px; }
.player-adventure.player-adventure .hero-journal-list-card h2 { margin:0 0 24px; font:400 28px/1.3 Georgia,serif; }
.player-adventure.player-adventure .hero-journal-list-card h2 a { color:#eee; text-decoration:none; }
.player-adventure.player-adventure .hero-journal-list-card h2 a:is(:hover, :focus-visible) { color:#fff !important; text-decoration:underline; }
.player-adventure.player-adventure .hero-journal-list-actions > .btn-secondary { background:#353a3f; }
.player-adventure.player-adventure .hero-journal-list-actions > .btn-secondary:is(:hover,:focus-visible) { background:#474e55; color:white !important; }
.player-adventure.player-adventure .hero-journal-list-footer { display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; padding-top:18px; border-top:1px solid #ffffff20; }
.player-adventure.player-adventure .hero-journal-list-date { display:flex; flex-direction:column; gap:6px; color:#aeb8c0; font-size:13px; }
.player-adventure.player-adventure .hero-journal-list-actions { display:flex; gap:8px; margin-left:auto; }

/* Gold variant of the exact shared profile frame. */
.player-adventure.player-adventure .character-post-panel { position:relative; isolation:isolate; }
.player-adventure.player-adventure .character-post-panel::before { background:linear-gradient(135deg,#f1d995 0%,#8c713b 16%,#302312 33%,#ac8948 49%,#fff0bb 51%,#796034 70%,#291d0b 87%,#d1af64 100%); }
.player-adventure.player-adventure .character-post-panel::after { background:linear-gradient(135deg,#e3ca8c 0%,#796034 22%,#b29455 48%,#f4dfa4 51%,#6a5028 75%,#c7a862 100%); }
.player-adventure.player-adventure .social-feed-separated { background:rgba(20,25,29,.9); }
.player-adventure.player-adventure .social-feed-separated > .social-feed-box { background:transparent; padding:24px 24px 28px 88px; }
.player-adventure.player-adventure .social-feed-separated > .social-avatar { left:24px; top:24px; }
.player-adventure.player-adventure .social-feed-box > .social-action { right:24px; }
.player-adventure.player-adventure .social-feed-box > .social-avatar { position:relative; padding-right:58px; }
.player-adventure.player-adventure .social-feed-box > .social-avatar .privacy-indicator { position:absolute; top:0; right:24px; line-height:24px; }
@media(max-width:600px){.player-adventure.player-adventure .social-feed-separated > .social-feed-box {padding:20px 16px 24px 76px;}.player-adventure.player-adventure .social-feed-separated > .social-avatar {left:16px;top:20px;}}
.player-adventure.player-adventure .character-post-panel::before,
.player-adventure.player-adventure .character-post-panel::after { display:block; width:auto; height:auto; clear:none; }

/* Journal reading shares the management list's frame and metadata rhythm. */
.player-adventure.player-adventure .hero-journal-reading h1 { margin:0 0 12px; font:400 clamp(28px,3vw,40px)/1.2 Georgia,serif; color:#eee; overflow-wrap:anywhere; }
.player-adventure.player-adventure .hero-journal-byline { margin:0 0 24px; color:#aeb8c0; }
.player-adventure.player-adventure .hero-journal-prose { margin:28px 0 0; font-size:17px; line-height:1.8; overflow-wrap:anywhere; }
.player-adventure.player-adventure .hero-journal-prose img { max-width:100%; height:auto; }
.player-adventure.player-adventure .hero-journal-prose > :last-child { margin-bottom:0; }
.player-adventure.player-adventure .hero-journal-secret { margin-top:32px; padding-top:24px; border-top:1px solid #ffffff20; }
.player-adventure.player-adventure .hero-journal-secret h2 { margin:0; font-size:22px; }
.player-adventure.player-adventure .hero-journal-chapters h2 { font-size:24px; margin-bottom:16px; }
.player-adventure.player-adventure .hero-journal-chapters ol { list-style:none; padding:0; margin:0 0 24px; }
.player-adventure.player-adventure .hero-journal-chapters li { padding:16px 0; border-bottom:1px solid #ffffff20; }
.player-adventure.player-adventure .hero-journal-chapters li a { display:flex; align-items:center; justify-content:space-between; gap:16px; color:#d9e0e4; }
.player-adventure.player-adventure .hero-journal-chapters li a:hover { color:#e4c77e; }
.player-adventure.player-adventure .hero-journal-current { display:block; color:#e4c77e; }
.player-adventure.player-adventure .hero-journal-current small,.player-adventure.player-adventure .hero-journal-chapter-date { display:block; color:#aeb8c0; margin-top:6px; font-size:12px; }
.player-adventure.player-adventure .hero-journal-sharing { display:flex; align-items:center; gap:12px; margin:0 0 24px; }
@media(max-width:600px) { .player-adventure.player-adventure .hero-journal-reading,.player-adventure.player-adventure .hero-journal-chapters { padding:24px; } }

/* About content alone has a panel below its section heading. */
.player-adventure.player-adventure .hero-about-content-panel { background:rgba(20,25,29,.9); padding:28px; border:1px solid #ffffff12; }
.player-adventure.player-adventure .hero-masthead--profile .hero-masthead-identity { flex:1; min-width:0; }
.player-adventure.player-adventure .hero-profile-edit { display:inline-flex; align-items:center; gap:8px; flex-shrink:0; margin-left:auto; white-space:nowrap; }
@media(max-width:1100px) {
 .player-adventure.player-adventure .hero-masthead--profile .hero-masthead-content { flex-wrap:wrap; gap:20px; }
}
@media(max-width:767px) {
 .player-adventure.player-adventure .hero-profile-edit { margin:16px 0 0; }
 .player-adventure.player-adventure .hero-about-content-panel { padding:20px; }
}

/* Public Stream and private Log share compact, aligned post headers. */
.player-adventure [data-profile-feed] .social-feed-box > .social-avatar {padding:0 72px 0 0; margin-bottom:8px; min-height:0;}
.player-adventure [data-profile-feed] .social-body {padding-top:0; margin-top:0;}
.player-adventure [data-profile-feed] .social-feed-box-payload {margin-top:0; padding-top:0;}
.player-adventure [data-profile-feed] .social-feed-box-payload p:first-child {margin-top:0;}
.player-adventure [data-profile-feed] .social-action {position:absolute; top:24px; right:24px; margin:0; z-index:2;}
.player-adventure.player-adventure [data-profile-feed] .social-feed-box > .social-avatar .privacy-indicator {top:0; right:44px; line-height:32px;}
.player-adventure [data-profile-feed] .social-action > button {display:flex; align-items:center; justify-content:center; width:32px; height:32px; border:1px solid rgba(255,255,255,.16); background:#252b30; color:#e9edf0;}
.player-adventure [data-profile-feed] .social-action .dropdown-menu {min-width:200px; padding:0; background:#2c2d2e; border:0; border-radius:0; box-shadow:0 8px 24px #0008;}
.player-adventure [data-profile-feed] .social-action .dropdown-menu li {padding:0; margin:0; background:transparent;}
.player-adventure [data-profile-feed] .social-action .dropdown-menu a {display:flex; align-items:center; gap:10px; padding:12px; margin:0; font-size:14px; line-height:20px; white-space:nowrap; text-transform:none; color:#e9edf0;}
.player-adventure [data-profile-feed] .social-action .dropdown-menu a:hover {background:#38393b;}
.player-adventure [data-profile-feed] .social-action .dropdown-menu i {font-size:16px; width:18px; text-align:center;}
.hero-log-compose-actions {display:flex; align-items:center; justify-content:space-between; margin-top:16px;}
.hero-log-search {display:flex; align-items:center; gap:10px; width:280px; max-width:100%; margin:20px 0 20px auto;}
.hero-log-search .form-control {min-width:0; font-size:14px;}
.hero-log-search > i {font-size:16px; color:#aeb8c2;}
.hero-feed-empty {padding:24px; background:rgba(20,25,29,.9);}

@media(max-width:600px){.player-adventure.player-adventure [data-profile-feed] .social-feed-box > .social-action {top:20px;right:16px;}}

.hero-stream-submit {display:flex; align-items:center; gap:16px; margin-left:auto; white-space:nowrap;}
.player-adventure .hero-stream-submit .text-muted {color:#adb6bd!important;}

.player-adventure.player-adventure #character-log-form {border:0;padding:0;margin:0;}
.player-adventure.player-adventure #character-log-form .hero-log-compose-actions {min-height:36px;justify-content:flex-end;}
.player-adventure.player-adventure #character-log-content {height:140px;min-height:140px;}

.player-adventure.player-adventure #character-log-form {background:#25292d;}
.player-adventure.player-adventure #character-log-form .media img {width:48px;height:48px;border-radius:50%;object-fit:cover;}

.hero-feed-description {margin:-12px 0 24px;color:#aeb8c2;font-size:16px;line-height:1.5;}
.player-adventure.player-adventure #post-content,.player-adventure.player-adventure #character-log-content {height:88px!important;min-height:88px!important;font-size:16px;line-height:24px;padding:7px 10px;box-sizing:border-box;}
.hero-log-tags {display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 0;}
#character-log .log-entry-location a {
    color:#fff !important;
    text-decoration:none;
}
#character-log .social-feed-separated a:is(:hover,:focus-visible) {
    color:#fff !important;
    text-decoration:underline;
    text-underline-offset:0.15em;
}
.hero-log-tag {background:#283138;border:1px solid #53616a;border-radius:0;color:#d5e3eb;font:400 14px/20px Lato,sans-serif;padding:4px 10px;cursor:pointer;}
.hero-log-tag:hover,.hero-log-tag:focus-visible {background:#35434d;border-color:#a6915f;color:#fff;}

/* Prodromos context menu / Figma ThreeDots Menu Elements Dark. */
.player-adventure [data-profile-feed] .social-action > button {padding:0;}
.player-adventure [data-profile-feed] .social-action > button::after {margin:0;position:static;transform:none;vertical-align:initial;}
.player-adventure [data-profile-feed] .social-action .dropdown-menu a {width:100%;box-sizing:border-box;}
.player-adventure [data-profile-feed] .social-action .dropdown-menu a.entry-delete {background:#222324;border-top:1px solid #717275;color:#aeb0b5;}
.player-adventure [data-profile-feed] .social-action .dropdown-menu a.entry-delete:hover,
.player-adventure [data-profile-feed] .social-action .dropdown-menu a.entry-delete:focus-visible {background:#9f0e11;color:#ebeef5;}
.player-adventure [data-profile-feed] .social-action .dropdown-menu a.entry-delete:active {background:#560608;color:#ebeef5;}
.player-adventure [data-profile-feed] .social-action .dropdown-menu i {color:inherit;font-size:14px;width:14px;margin:0;}

/* Keep legacy gold link hovers out of the Prodromos action menus. */
.player-adventure.player-adventure [data-profile-feed] .social-action .dropdown-menu a {border-radius:0;}
.player-adventure.player-adventure [data-profile-feed] .social-action .dropdown-menu a:hover,
.player-adventure.player-adventure [data-profile-feed] .social-action .dropdown-menu a:focus-visible {color:#ebeef5!important;text-decoration:none;}
.player-adventure.player-adventure [data-profile-feed] .social-action .dropdown-menu a:hover i,
.player-adventure.player-adventure [data-profile-feed] .social-action .dropdown-menu a:focus-visible i {color:#ebeef5!important;}

.player-adventure .hero-log-tag-hint {margin-right:auto;color:#aeb8c2;font-size:14px;line-height:20px;}
.player-adventure .hero-log-compose-actions {flex-wrap:wrap;gap:12px;}

@media(min-width:576px){.player-adventure .hero-log-tag-hint {margin-left:56px;}}

.player-adventure.player-adventure .hero-follow-button:hover i {color:inherit!important;}

/* Memory editing uses one aligned field grid, without horizontal-form columns. */
.player-adventure.player-adventure .hero-memory-edit>h2 {margin:0 0 24px;}
.player-adventure.player-adventure .hero-memory-edit-field {min-width:0;margin:0 0 24px;}
.player-adventure.player-adventure .hero-memory-edit-field>label {display:block;float:none;width:auto;padding:0;margin:0 0 8px;text-align:left;}
.player-adventure.player-adventure .hero-memory-edit-field>.form-control {width:100%;box-sizing:border-box;}
.player-adventure.player-adventure .hero-memory-edit-metadata {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:24px;align-items:start;}
.player-adventure.player-adventure .hero-memory-edit .bootstrap-tagsinput {display:flex;align-items:center;flex-wrap:wrap;gap:8px;width:100%;box-sizing:border-box;min-height:42px;margin:0;padding:8px 0;border-radius:0;box-shadow:none;}
.player-adventure.player-adventure .hero-memory-edit .bootstrap-tagsinput input {border:0!important;min-height:28px;height:28px;padding:0;margin:0;flex:1 1 70px;width:70px;min-width:40px;}
.player-adventure.player-adventure .hero-memory-edit .bootstrap-tagsinput .tag {display:inline-flex;align-items:center;gap:8px;height:26px;max-width:100%;margin:0;padding:0 0 0 8px;border:0;border-radius:0;background:#1e6d9e;color:#ebeef5;font:400 12px/14.4px Lato,sans-serif;white-space:normal;overflow-wrap:anywhere;}
.player-adventure.player-adventure .hero-memory-edit .bootstrap-tagsinput .tag [data-role="remove"] {display:inline-flex;align-items:center;justify-content:center;align-self:stretch;flex:0 0 18px;width:18px;height:26px;margin:0;padding:0;background:#185880;color:#ebeef5;border-radius:0;box-shadow:none;}
.player-adventure.player-adventure .hero-memory-edit .bootstrap-tagsinput .tag [data-role="remove"]::after {content:"×";padding:0;font:700 12px/1 Lato,sans-serif;}
.player-adventure.player-adventure .hero-memory-edit .bootstrap-tagsinput .tag [data-role="remove"]:hover {background:#124563;color:#fff;box-shadow:none;}
.player-adventure.player-adventure .hero-memory-edit select {min-height:42px;}
.player-adventure.player-adventure .hero-memory-edit .bn-editor {padding:12px 36px;min-height:160px;border-radius:0;}
.player-adventure.player-adventure .hero-memory-edit .hero-form-actions {margin-top:0;}
@media(max-width:600px){.player-adventure.player-adventure .hero-memory-edit-metadata {grid-template-columns:1fr;gap:0;}.player-adventure.player-adventure .hero-memory-edit {padding:20px;}}

.player-adventure.player-adventure .hero-profile-tabs { background:transparent!important; }
.player-adventure .hero-profile-tabs .nav {
    display:flex; flex-wrap:nowrap; align-items:center; gap:28px; overflow-x:auto;
    padding:8px 0 22px; margin:0; border:0; scrollbar-width:thin;
}
.player-adventure .hero-profile-tabs .nav-item { flex:none; }
.player-adventure.player-adventure .hero-profile-tabs .nav-link {
    position:relative; display:block; padding:10px 0 16px; min-height:48px;
    background:transparent!important; border:0!important; color:#a6a9ad!important;
    font:400 18px/1.5 Georgia,serif; text-decoration:none; transition:color .18s;
}
.player-adventure.player-adventure .hero-profile-tabs .nav-link:is(:hover,:focus-visible,.active,[aria-current]) { color:#ebeef5!important; }
.player-adventure .hero-profile-tabs .nav-link:is(.active,[aria-current])::before {
    content:''; position:absolute; left:50%; bottom:.5px; width:8px; height:8px;
    box-sizing:border-box; transform:translateX(-50%) rotate(45deg); border:1px solid #b8bdc4;
}
.player-adventure .hero-profile-tabs .nav-link:is(.active,[aria-current])::after {
    content:''; position:absolute; inset:auto 0 4px; height:1px;
    background:linear-gradient(to right,#b8bdc4 calc(50% - 6px),transparent calc(50% - 6px) calc(50% + 6px),#b8bdc4 calc(50% + 6px));
}
.player-adventure.player-adventure .character-sidebar-left a:not(.btn):is(:hover,:focus-visible) { color:#ebeef5!important; }
.player-adventure.player-adventure .hero-return-profile { margin-top:8px; padding:4px 8px; }
.player-adventure.player-adventure .hero-return-profile:is(:hover,:focus-visible) { color:white!important; background:#474e55!important; }
.player-adventure.player-adventure .hero-delete-character:is(:hover,:focus-visible) { color:white!important; background:#9f0e11!important; }
@media(max-width:760px) {
    .player-adventure .hero-profile-tabs .nav { gap:22px; }
    .player-adventure.player-adventure .hero-profile-tabs .nav-link { font-size:16px; }
}
#hero-css-editor:not(:empty) { height:clamp(280px,50vh,600px); }

.player-adventure.player-adventure .hero-section-form-heading { margin:0 0 18px; font-size:20px; line-height:1.3; }
.player-adventure.player-adventure .hero-section-form.p-0 { background:#1c2226!important; border-top:2px solid #8e7949; }
.player-adventure .hero-section-form.p-0 .hero-section-form-heading { margin:0; padding:24px 28px 0; }
.player-adventure.player-adventure .hero-section-form .hero-memory-form { border-top:0; }

.player-adventure.player-adventure .hero-masthead--section .hero-masthead-identity { flex:1; min-width:0; }
@media(max-width:767px) {
    .player-adventure.player-adventure .hero-masthead--section .hero-masthead-content { flex-wrap:wrap; }
}

/* Position the sidebar portrait from the banner top, including when the name wraps. */
.player-adventure.player-adventure:has(#character-container) { --profile-banner-height:clamp(215px,18vw,310px); }
.player-adventure.player-adventure .hero-masthead--profile {
    anchor-name:--profile-banner;
    min-height:var(--profile-banner-height);
    padding:0 24px;
    margin-bottom:0;
}
.player-adventure.player-adventure .hero-masthead--profile .hero-masthead-content {
    min-height:0;
    padding:44px 0 40px calc(var(--profile-sidebar) + var(--profile-gap));
    margin-block:auto;
}
.player-adventure.player-adventure .hero-masthead--profile::after {
    background:linear-gradient(90deg,#10151a30,#080b10b8),linear-gradient(0deg,#080b10cf,transparent 80%);
}
.player-adventure .hero-sidebar-portrait {
    position:relative;
    z-index:1;
    aspect-ratio:3/4;
    margin:calc(24px - var(--profile-banner-height)) 0 20px;
    margin-top:calc(24px - anchor-size(--profile-banner height, var(--profile-banner-height)));
    padding:4px;
    border:1px solid #aeb4bb;
    background:#23282d;
    box-shadow:0 6px 22px #0008;
}
.player-adventure .hero-sidebar-portrait img { display:block; width:100%; height:100%; object-fit:cover; object-position:center 20%; }
@media(max-width:767px) {
    .player-adventure.player-adventure .hero-masthead--profile { padding-inline:16px; }
    .player-adventure.player-adventure .hero-masthead--profile .hero-masthead-content {
        flex-direction:column; align-items:flex-start; gap:12px; padding:32px 0 64px;
    }
    .player-adventure .hero-sidebar-portrait { max-width:240px; margin:-36px auto 16px; }
    .player-adventure.player-adventure .hero-masthead--profile .hero-profile-edit { margin:0; }
}

.player-adventure #character-about-container .hero-dossier { padding-inline:0; }

/* Private character profile log */
#character-log .social-feed-separated {
    --log-inset: clamp(14px, 2vw, 24px);
    --log-portrait: clamp(48px, 6vw, 76px);
    margin-bottom: 14px;
    border: 1px solid #454951;
    border-radius: 8px;
    background: linear-gradient(115deg, #25282e, #1b1e23);
}
#character-log .social-feed-separated > .social-avatar {
    top: var(--log-inset);
    left: var(--log-inset);
    width: var(--log-portrait);
}
#character-log .social-feed-separated > .social-avatar img {
    width: var(--log-portrait) !important;
    height: var(--log-portrait) !important;
    max-width: none;
    box-sizing: border-box;
    border: 2px solid #cfad67;
}
#character-log .social-feed-separated > .social-feed-box {
    padding: var(--log-inset);
    padding-left: calc(var(--log-inset) + var(--log-portrait) + 16px);
    min-height: calc(2 * var(--log-inset) + var(--log-portrait));
    border: 0;
}
#character-log .social-feed-box > .social-avatar {
    padding: 0 76px 0 0;
    margin: 0 0 8px;
}
#character-log .social-feed-box > .social-avatar > a {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}
#character-log .social-feed-box > .social-avatar > small {
    font-size: 14px;
}
#character-log .social-feed-box > .social-avatar > .text-muted {
    display: block;
    margin-top: 4px;
    color: #ced4dc !important;
    opacity: 1;
    line-height: 1.65;
}
#character-log .log-entry-session {
    color: #fff;
    font-weight: 600;
}
#character-log .social-feed-box-payload {
    color: #f3f4f6;
    font-size: 18px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
#character-log .social-feed-box-payload,
#character-log .social-feed-box-payload p:last-child {
    margin-bottom: 0;
}
@media (max-width: 600px) {
    #character-log .social-feed-separated > .social-feed-box {
        padding-left: var(--log-inset);
    }
    #character-log .social-feed-box > .social-avatar {
        padding-left: calc(var(--log-portrait) + 12px);
        min-height: var(--log-portrait);
    }
}
