/* Point Blank member, forum and admin screens: sharp framed 2009-era brass and stone */
.member-panel,.pb-commerce-shell{background:linear-gradient(150deg,#3b3024,#241b13);padding:17px;border:3px double #a57d42;box-shadow:inset 0 0 0 2px #1e140e;color:#e7d1a8;min-height:245px}
.member-panel h2,.member-panel h3,.pb-commerce-shell h2,.pb-commerce-shell h3{color:#f4cd79;font-family:Georgia,'Times New Roman',serif}
.member-panel a{color:#ffd37a}
.member-lead{margin:0 0 14px;line-height:1.6;color:#dcc8a1}
.member-form{display:grid;gap:12px;max-width:590px;margin:10px 0 16px}
.member-form label{display:flex;flex-direction:column;gap:5px;color:#efd095;font-weight:700}
.member-form label small{color:#c3ac83;font-weight:400}
.member-form input,.member-form select,.member-form textarea,.member-form button,.member-filter{font:14px Arial,Helvetica,sans-serif}
.member-form input,.member-form select,.member-form textarea,.member-filter{color:#f5e6c8;background:#1e1710;border:2px inset #8b6336;padding:10px;min-width:0;max-width:100%;border-radius:0}
.member-form input:focus-visible,.member-form textarea:focus-visible,.member-form select:focus-visible{outline:2px solid #efc967;outline-offset:2px}
.member-btn,.forum-toolbar a.member-btn{display:inline-flex;align-items:center;justify-content:center;width:max-content;max-width:100%;font:bold 13px Arial,sans-serif;color:#30200e!important;text-decoration:none;padding:9px 15px;background:linear-gradient(#fff3b2,#e4b757 45%,#bc8237);border:3px ridge #8b592a;box-shadow:inset 0 1px #fff8da;cursor:pointer;border-radius:0}
.member-btn:hover,.member-btn:focus-visible{filter:brightness(1.12)}.member-btn.secondary{color:#f2d297!important;background:linear-gradient(#51402b,#32281e);border-color:#93703d}
.member-error{color:#ffcca4!important;background:#4b241b!important;border-color:#bb7455!important}.member-message{padding:12px;border:1px solid #a48250;background:#44321e;margin:8px 0 14px;color:#eacb99;line-height:1.45}
.member-profile-heading{display:flex;align-items:center;gap:17px;border-bottom:2px solid #77542d;padding:4px 0 17px}.member-profile-heading h2{margin:0}.member-profile-heading p{margin:4px 0;color:#d9c5a3}.member-avatar{height:65px;width:65px;display:grid;place-items:center;background:linear-gradient(145deg,#836034,#38291b);border:3px ridge #a9803e;color:#f1cb7d;font:bold 38px Georgia,serif;flex-shrink:0}.member-rank,.forum-post-rank{font:700 11px Arial,sans-serif;display:inline-block;padding:3px 7px;background:#79562d;border:1px solid #b1894d;color:#ffe4a1}.member-action-bar{display:flex;flex-wrap:wrap;gap:9px;align-items:center;margin:14px 0}.member-action-bar form{margin:0}.member-subhead{font:small-caps bold 23px Georgia,serif!important;margin:24px 0 10px;border-bottom:1px solid #76532b;padding-bottom:5px}.member-activity{display:grid;gap:5px}.member-activity>a{display:flex;justify-content:space-between;gap:6px;padding:10px;background:#302419;border:1px solid #694c2e;text-decoration:none}.member-activity small{color:#ceb68c}
.forum-toolbar{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:10px;background:#49351f;border:1px solid #a47b42;color:#ddbf84;font:12px Arial}.forum-toolbar a{color:#f9d788}.forum-thread-title{background:linear-gradient(#533721,#33271c);border:2px ridge #a47e4c;padding:13px;margin:14px 0}.forum-thread-title h2{margin:0 0 5px}.forum-thread-title small{color:#cfb88f}
.forum-categories{display:grid;gap:4px;margin:12px 0}.forum-category{display:flex;align-items:center;gap:12px;padding:12px 11px;background:linear-gradient(#4a3320,#302319);border:2px ridge #7d5833;text-decoration:none}.forum-category:hover,.forum-topic-row:hover{background:#624328}.forum-category>span:nth-child(2){flex:1;min-width:0}.forum-category strong{color:#f3cf7f;font:700 16px Georgia,serif;display:block}.forum-category small{display:block;color:#d7c19b;padding-top:4px}.forum-category-emblem{font:30px Georgia;color:#af8c4a;width:38px;text-align:center}.forum-category-arrow{color:#f7d891;font-size:24px}.forum-topic-head,.forum-topic-row{display:grid;grid-template-columns:minmax(0,1fr) 60px 120px;gap:8px;align-items:center}.forum-topic-head{padding:8px 12px;background:#70512b;color:#f4daaa;font-weight:bold}.forum-topic-row{padding:11px 12px;border-bottom:1px solid #6c4c29;background:#2b2118;text-decoration:none;color:#dbbf8b!important}.forum-topic-row strong{color:#f5d385;display:block}.forum-topic-row small{color:#bda989;display:block;padding-top:4px}.forum-topic-row>span:not(:first-child){text-align:center;color:#dcc6a0}.forum-topic-list{border:2px solid #76532f}.forum-topic-empty{padding:18px;background:#241a12;color:#d7c29a}
.forum-post{display:grid;grid-template-columns:145px minmax(0,1fr);margin:8px 0;border:2px solid #75522e;background:#2c2016;min-width:0}.forum-post aside{background:#41301f;border-right:1px solid #76532e;padding:12px;display:flex;align-items:flex-start;flex-direction:column;gap:8px}.forum-post aside .member-avatar{width:48px;height:48px;font-size:27px}.forum-post aside small{font-size:11px;color:#cdb78d}.forum-author{font:700 16px Georgia,serif;color:#f1ca76}.forum-post-copy{padding:13px;min-width:0}.forum-post-meta{display:flex;justify-content:space-between;border-bottom:1px solid #675032;padding:0 0 10px;margin:0 0 10px;color:#cbb48d;font-size:11px}.forum-post-body{white-space:normal;overflow-wrap:anywhere;line-height:1.65;color:#e9d5b7}
.admin-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.admin-tabs a{background:#39291b;border:1px solid #ab7f45;padding:9px 12px;color:#f4d18a;text-decoration:none}.admin-tabs a.active{background:#d0a15b;color:#251a10;font-weight:bold}.admin-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:9px}.admin-media-card{background:#291f16;border:1px solid #7e5c33;padding:8px;min-width:0}.admin-media-card img,.admin-media-card video{display:block;width:100%;height:118px;object-fit:contain;background:#120f0b}.admin-media-card h4{margin:7px 0;color:#e9c783;overflow-wrap:anywhere}.admin-media-card small{display:block;color:#c2a984;margin-bottom:7px}.admin-media-card form{margin:0}.admin-media-card .member-btn{font-size:11px;padding:5px 8px}.admin-upload-help{color:#ccb38c;line-height:1.5}.admin-stat{border:1px solid #98703b;background:#352718;padding:14px;margin-bottom:8px}.admin-stat strong{font:26px Georgia;color:#f2d080;display:block}
@media(max-width:620px){.member-panel{padding:11px}.forum-post{grid-template-columns:110px minmax(0,1fr)}.forum-post aside{padding:7px}.forum-topic-head,.forum-topic-row{grid-template-columns:minmax(0,1fr) 42px 80px}.forum-topic-row{font-size:11px;padding:8px}.member-profile-heading{align-items:flex-start}}
@media(max-width:410px){.forum-post{display:block}.forum-post aside{border-right:none;border-bottom:1px solid #694a2e;flex-direction:row;align-items:center;flex-wrap:wrap}.forum-post aside .member-avatar{display:none}}
/* Verified vote-point collection (callback not enabled by default). */
.pb-vote-sites{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0}
.pb-vote-site{border:3px double #a37a44;background:linear-gradient(#493420,#261b11);padding:18px 12px;text-align:center;box-shadow:inset 0 0 0 1px #513518}
.pb-vote-site h2{font:bold small-caps 22px Georgia,'Times New Roman',serif;color:#f6d088;margin:8px 0}
.pb-vote-site p{min-height:40px}.pb-vote-site-emblem{display:block;font-size:30px;color:#e2b75f}
.pb-vote-balance{display:flex;gap:14px;align-items:center;justify-content:space-between;max-width:360px;background:#312316;border:2px ridge #a37b45;padding:10px 14px}
.pb-vote-balance strong{font:bold 24px Georgia,serif;color:#f5cc76}
@media(max-width:690px){.pb-vote-sites{grid-template-columns:1fr}}

/* Point Blank v0.2.1 */
.pb-vote-entry .member-form{max-width:400px;width:100%}
.pb-vote-entry .member-form input[name="username"]{width:100%;max-width:310px;box-sizing:border-box}
.pb-vote-sites{grid-template-columns:repeat(3,minmax(0,1fr))}
.pb-vote-site-emblem{position:relative;display:grid;place-items:center;width:68px;height:68px;margin:auto;background:linear-gradient(#5f4629,#342316);border:3px ridge #a27a42}
.pb-vote-site-emblem img{display:block;position:relative;z-index:1;width:40px;height:40px;image-rendering:auto}
.pb-vote-fallback{position:absolute;inset:0;display:grid;place-items:center;color:#deb878;font:bold 22px Georgia,serif;z-index:0}
.pb-vote-site h2{overflow-wrap:anywhere}
@media(max-width:840px){.pb-vote-sites{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:570px){.pb-vote-sites{grid-template-columns:1fr}}

/* Published Point Blank news */
.news-archive{display:grid;gap:9px}
.news-archive-entry,.pb-full-update{border:2px ridge #98703e;background:linear-gradient(180deg,#3b2b1c,#251b13);padding:13px;color:#e2cba7;min-width:0}
.news-archive-entry{position:relative;padding-right:125px}
.news-archive-title{display:block;font:small-caps bold 22px Georgia,'Times New Roman',serif;color:#f6d48b!important;margin-bottom:5px}
.news-archive-category{position:absolute;right:12px;top:14px;font:bold 11px Arial;color:#ffd184;text-transform:uppercase}
.news-archive-entry small{color:#bbaa8c}.news-archive-entry p{margin:9px 0 0;line-height:1.5}
.pb-full-update .news-heading{display:flex;justify-content:space-between;gap:12px;font:small-caps bold 20px Georgia,serif;color:#ffe0a2;border:2px ridge #a47b41;padding:9px;background:linear-gradient(#6c4a28,#392619)}
.pb-full-update .news-heading span:last-child{font:700 11px Arial;white-space:nowrap;color:#f5d084}
.pb-full-update .news-story-content{min-height:120px;line-height:1.8;font-size:14px;color:#ebd9bb;overflow-wrap:anywhere;white-space:normal}
.pb-full-update .news-story-hero{display:block;float:right;width:216px;height:139px;object-fit:cover;margin:12px 0 12px 15px;border:3px ridge #a88451}
.pb-full-update:after{content:"";display:block;clear:both}
.news-story-content img.news-inline-img{display:inline-block;border:2px ridge #a88451;max-width:100%;height:auto;vertical-align:middle;margin:8px}
.news-story-footer{clear:both;border-top:1px solid #76552c;display:flex;justify-content:flex-end;padding:13px 0 0;margin-top:16px;font-weight:700}
.news-story-footer a{color:#fbd481}
@media(max-width:500px){.news-archive-entry{padding-right:13px}.news-archive-category{position:static;display:block;margin-bottom:7px}.pb-full-update .news-story-hero{float:none;margin:12px auto}}

/* Owner news composition interface: resizable inline image previews and BBCode controls. */
.pb-news-form{max-width:850px}
.pb-news-form textarea{width:100%;resize:vertical;min-height:200px;line-height:1.55}
.pb-news-bb-toolbar{display:flex;gap:5px;flex-wrap:wrap}
.pb-news-bb-toolbar button{font:bold 12px Arial;color:#38200f;background:linear-gradient(#f8db96,#d3a04b);border:2px ridge #956e37;padding:6px 13px;cursor:pointer}
.pb-news-inline-controls{border:2px ridge #936932;padding:12px;background:#362719}
.pb-news-inline-controls p{font-size:12px;color:#cdb68e;line-height:1.5}
.pb-news-preview{padding:15px;border:3px double #a7814b;background:#231a12;color:#e8d4af;min-height:100px;line-height:1.8;overflow-wrap:anywhere}
.pb-news-empty{color:#b9a27b}
.pb-image-resizer{display:inline-block;position:relative;vertical-align:middle;max-width:100%;border:2px ridge #997144;margin:9px 6px;touch-action:none}
.pb-image-resizer img{display:block;width:100%;height:100%;object-fit:contain}
.pb-resize-handle{display:block;position:absolute;width:12px;height:12px;background:#f4cf76;border:2px solid #533014;z-index:2;border-radius:0;touch-action:none}
.pb-resize-handle[data-resize=nw]{left:-7px;top:-7px;cursor:nwse-resize}
.pb-resize-handle[data-resize=n]{left:calc(50% - 6px);top:-7px;cursor:ns-resize}
.pb-resize-handle[data-resize=ne]{right:-7px;top:-7px;cursor:nesw-resize}
.pb-resize-handle[data-resize=e]{right:-7px;top:calc(50% - 6px);cursor:ew-resize}
.pb-resize-handle[data-resize=se]{right:-7px;bottom:-7px;cursor:nwse-resize}
.pb-resize-handle[data-resize=s]{left:calc(50% - 6px);bottom:-7px;cursor:ns-resize}
.pb-resize-handle[data-resize=sw]{left:-7px;bottom:-7px;cursor:nesw-resize}
.pb-resize-handle[data-resize=w]{left:-7px;top:calc(50% - 6px);cursor:ew-resize}


/* v1.0.6: keep Admin CP news editor fully inside the parchment panel.
   The textarea, inline upload well, and live preview must size to the panel width
   without spilling past the light-brown scroll container. */
.member-panel,
.member-panel *,
.pb-news-form,
.pb-news-form *,
.pb-news-inline-controls,
.pb-news-preview {
  box-sizing: border-box;
}
.pb-news-form,
.pb-news-form label,
.pb-news-form textarea,
.pb-news-inline-controls,
.pb-news-preview {
  width: 100%;
  max-width: 100%;
}
.pb-news-inline-controls input[type="file"] {
  max-width: 100%;
}
.pb-news-preview {
  overflow: hidden;
}

/* Compact sitewide form controls: keep titles/bodies roomy and utility inputs narrow */
.member-panel .member-form:not(.pb-thread-editor) {max-width:min(100%,560px)}
.member-panel .member-form select,.member-panel .member-form input:not([type=checkbox]):not([type=file]){max-width:340px}
.member-panel .pb-news-form textarea{max-width:100%}

/* Separate private account settings from public profiles. */
.pb-account-dropdown{position:relative;display:inline-flex;align-items:center;z-index:51}
.pb-account-trigger{position:relative!important;right:auto!important;top:auto!important;cursor:pointer;border-radius:5px}
.pb-account-menu{position:absolute;top:calc(100% + 5px);right:0;display:none;min-width:180px;background:#24190f;border:2px solid #bc8848;box-shadow:0 9px 24px #000b;z-index:60}
.pb-account-dropdown.open .pb-account-menu{display:flex;flex-direction:column}
.pb-account-menu a{padding:10px 13px;border-bottom:1px solid #604422;color:#efca78;text-decoration:none;font-weight:700;font-size:12px;white-space:nowrap}
.pb-account-menu a:hover,.pb-account-menu a:focus-visible{background:#624321;color:#fff0bd}
.pb-ucp-links{display:flex;flex-wrap:wrap;gap:9px;margin:12px 0}
.pb-ucp-links a{padding:7px 12px;border-radius:5px;border:1px solid #987344;background:#2d2115}
.pb-ucp-cover{margin:10px 0 16px;max-height:190px}

.pb-avatar-presence{position:relative;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
.pb-presence-dot{position:absolute;right:1px;bottom:1px;width:12px;height:12px;border:2px solid #292014;border-radius:50%;z-index:3;background:#929292;box-shadow:0 0 3px #111}
.pb-presence-dot.online{background:#55c349;box-shadow:0 0 4px #66d657}
.pb-presence-dot.offline{background:#929292}

/* Account settings are private, separate from public profile pages. */
.pb-ucp-shell{display:grid;grid-template-columns:minmax(135px,190px) minmax(0,1fr);gap:14px;align-items:start;margin:10px 0 24px}
.pb-ucp-sidebar{border:2px ridge #b68a52;background:#322416;padding:8px;display:grid;gap:3px;border-radius:6px}
.pb-ucp-sidebar h3{padding:9px;color:#f3d48c;margin:0;font-variant:small-caps;font-size:17px;border-bottom:1px solid #8e672f}
.pb-ucp-sidebar a{padding:10px 11px;text-decoration:none;border-radius:4px;color:#ead2a2;font-size:12px;font-weight:700}
.pb-ucp-sidebar a.selected,.pb-ucp-sidebar a:hover,.pb-ucp-sidebar a:focus-visible{background:linear-gradient(#bd8d47,#805a2d);color:#fff3cf;outline-offset:-2px}
.pb-ucp-main{min-width:0;border:2px ridge #a77b46;background:linear-gradient(150deg,#38271b,#281e15);padding:14px;border-radius:6px}
.pb-ucp-main>header{border-bottom:1px solid #866137;margin-bottom:12px}.pb-ucp-main h2{margin:3px 0 7px;color:#f5d584}.pb-ucp-main>header p{line-height:1.55;color:#d5c09a}
.pb-ucp-form{max-width:100%;width:100%;margin-top:12px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.pb-ucp-form>label,.pb-ucp-form>.wide{min-width:0}.pb-ucp-form label.wide,.pb-ucp-form p.wide{grid-column:1/-1}
.pb-ucp-form input:not([type=file]),.pb-ucp-form select{width:100%;max-width:340px}
.pb-ucp-form textarea{max-width:100%;width:100%;min-height:85px}
.pb-ucp-form>button[type=submit]{justify-self:start;align-self:end;max-width:180px;border-radius:5px}
@media(max-width:720px){.pb-ucp-shell{grid-template-columns:1fr}.pb-ucp-sidebar{display:flex;flex-wrap:wrap;gap:5px}.pb-ucp-sidebar h3{width:100%}.pb-ucp-form{grid-template-columns:1fr}}

/* Verified game bridge status uses the same muted brass panels as other Admin CP views. */
.pb-bridge-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,205px),1fr));gap:10px;margin:14px 0 20px}
.pb-bridge-stats article{border:1px solid #6b5233;background:#251d14;padding:12px 14px;min-width:0;display:flex;flex-direction:column;gap:7px}
.pb-bridge-stats strong{font-size:15px;color:#f0d18f;overflow-wrap:anywhere}
.pb-bridge-stats span{font-size:12px;color:#d4c4a6;line-height:1.45}
.pb-ticket-last{opacity:.85;font-style:italic}


/* Admin news: editable in-place media with responsive, rounded presentation. */
.pb-news-form .pb-news-visual {
 display:block;width:100%;max-width:100%;min-height:220px;max-height:650px;overflow:auto;
 padding:12px;line-height:1.65;color:#f5e6c8;background:#1e1710;
 border:2px inset #8b6336;border-radius:6px;white-space:pre-wrap;overflow-wrap:anywhere;
 box-sizing:border-box;outline-offset:2px;cursor:text;
}
.pb-news-form .pb-news-visual[hidden] {display:none}
.pb-news-form .pb-news-visual:focus-visible {outline:2px solid #efc967}
.pb-news-visual:empty:before{content:attr(data-placeholder);color:#b39f80;pointer-events:none}
.pb-news-visual .pb-news-media,.pb-news-preview .pb-news-media{
 display:inline-block;max-width:100%;height:auto!important;border:2px ridge #997144;
 border-radius:5px;vertical-align:middle;margin:8px 5px;background:#150f0c;
 box-sizing:border-box;white-space:normal;
}
.pb-news-visual .pb-news-media > img,.pb-news-visual .pb-news-media > video,
.pb-news-preview .pb-news-media > img,.pb-news-preview .pb-news-media > video{
 display:block;width:100%;max-width:100%;height:auto;max-height:580px;object-fit:contain;
 border-radius:4px;
}
.pb-news-visual .pb-resize-handle,.pb-news-preview .pb-resize-handle{border-radius:3px}
.pb-news-visual .pb-news-uploading{display:inline-block;border:1px dashed #d3ac64;padding:8px;color:#f5d58c}
.pb-news-upload-status{min-height:1.2em;margin:5px 0;color:#e6c584;font-size:12px}
.pb-full-update .news-story-content img.news-inline-img,
.pb-full-update .news-story-content video.news-inline-video{
 display:inline-block;vertical-align:middle;box-sizing:border-box;
 max-width:100%;height:auto;margin:8px 0;border-radius:5px;
 border:2px ridge #a88451;
}
.pb-full-update .news-story-content video.news-inline-video{display:block;width:min(100%,600px);background:#0a0807;max-height:75vh}
.pb-news-preview video{max-width:100%}

/* News media — historical articles and their forum announcement mirrors. */
.news-story-content .news-inline-img, .forum-post-body .news-inline-img,
.news-story-content .pb-forum-inline-image, .forum-post-body .pb-forum-inline-image {
  display:block;max-width:100%;width:auto;height:auto;max-height:75vh;
  margin:12px 0;border:2px ridge #a88451;border-radius:6px;
  box-sizing:border-box;object-fit:contain;
}
.news-story-content .news-inline-video, .forum-post-body .news-inline-video {
  display:block;width:min(100%,600px);max-width:100%;height:auto;max-height:75vh;
  margin:12px 0;border:2px ridge #a88451;border-radius:6px;
  box-sizing:border-box;background:#0a0807;
}
