*{box-sizing:border-box}
:root{
  --bg:#090c11;
  --panel:#0f141b;
  --panel-2:#141a23;
  --panel-3:#1a2230;
  --border:#202937;
  --border-soft:#18202b;
  --text:#f3f6fa;
  --muted:#8995a5;
  --dim:#5f6977;
  --accent:#7d68ff;
  --accent-2:#8f7fff;
  --green:#59d6a2;
  --red:#ff6f87;
  --gold:#f6c85f;
  --shadow:0 24px 80px rgba(0,0,0,.34);
}
html,body{margin:0;min-height:100%;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
body{overflow-x:hidden}
button,input{font:inherit}
button{color:inherit}
.app{max-width:1500px;margin:0 auto;display:grid;grid-template-columns:260px minmax(540px,1fr) 360px;min-height:100vh}
.left-rail,.chat-rail{position:sticky;top:0;height:100vh;background:rgba(11,15,21,.96)}
.left-rail{border-right:1px solid var(--border);padding:24px 16px;display:flex;flex-direction:column;overflow:auto}
.chat-rail{border-left:1px solid var(--border);display:grid;grid-template-rows:auto auto 1fr auto;overflow:hidden}
.brand-row{display:flex;gap:11px;align-items:center;padding:0 8px 26px}
.brand-logo{width:42px;height:42px}
.brand-name{font-weight:850;font-size:19px;letter-spacing:-.02em}
.brand-tag{color:var(--muted);font-size:11px;margin-top:2px}
.main-nav{display:grid;gap:5px}
.nav-link{border:0;background:transparent;display:flex;gap:13px;align-items:center;padding:12px 13px;border-radius:12px;color:#b3bdca;font-weight:720;cursor:pointer;text-align:left}
.nav-link:hover,.nav-link.active{background:#151c26;color:#fff}
.nav-icon{width:22px;font-size:18px;text-align:center}
.nav-badge{margin-left:auto;background:var(--accent);color:white;font-size:10px;min-width:19px;height:19px;border-radius:20px;display:grid;place-items:center}
.joined-section{margin-top:28px}
.section-heading{display:flex;justify-content:space-between;align-items:center;color:var(--dim);font-size:10px;font-weight:800;letter-spacing:.12em;padding:0 8px 8px}
.icon-button{border:0;background:transparent;color:var(--muted);cursor:pointer;font-size:17px;border-radius:8px;padding:5px 7px}
.icon-button:hover{background:var(--panel-3);color:#fff}
.joined-walls{display:grid;gap:3px}
.wall-link{border:0;background:transparent;display:flex;align-items:center;gap:10px;padding:10px 11px;border-radius:11px;cursor:pointer;color:#aeb8c5;text-align:left}
.wall-link:hover,.wall-link.active{background:#151d27;color:white}
.wall-orb{width:28px;height:28px;border-radius:9px;display:grid;place-items:center;font-size:12px;font-weight:850;background:linear-gradient(135deg,#28354a,#18202c)}
.wall-link-copy{min-width:0;flex:1}
.wall-link-copy strong,.wall-link-copy span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wall-link-copy strong{font-size:12px}
.wall-link-copy span{font-size:10px;color:var(--dim);margin-top:2px}
.account-panel{margin-top:auto;border:1px solid var(--border);background:var(--panel);border-radius:14px;padding:11px;display:flex;align-items:center;gap:9px}
.account-copy{min-width:0;flex:1}
.account-copy strong,.account-copy span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.account-copy strong{font-size:12px}
.verified-line{font-size:10px;color:#77dcb6;margin-top:2px}
.avatar{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;font-weight:850;font-size:12px;background:linear-gradient(135deg,#3d4d65,#202a39)}
.avatar-me{background:linear-gradient(135deg,#7c68ff,#38badf)}
.wall-stage{min-height:100vh;background:radial-gradient(circle at 50% -10%,rgba(125,104,255,.08),transparent 28%),#0a0e14;position:relative}
.wall-header{position:sticky;top:0;z-index:20;background:rgba(10,14,20,.94);backdrop-filter:blur(18px);border-bottom:1px solid var(--border)}
.wall-header-top{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:22px 24px 18px}
.eyebrow{font-size:10px;color:#7b8797;letter-spacing:.13em;font-weight:850}
.wall-header h1{font-size:27px;margin:4px 0 4px;letter-spacing:-.035em}
.wall-meta{display:flex;gap:7px;color:var(--muted);font-size:11px}
.wall-actions{display:flex;gap:8px;align-items:center}
.primary-button,.secondary-button,.control-button{border-radius:11px;padding:9px 12px;cursor:pointer;font-weight:780;font-size:12px}
.primary-button{border:0;background:linear-gradient(135deg,var(--accent),#6e55eb);box-shadow:0 8px 30px rgba(125,104,255,.18)}
.primary-button:hover{filter:brightness(1.08)}
.primary-button.small{padding:7px 10px}
.primary-button.full{width:100%;padding:12px}
.secondary-button{border:1px solid #303b4d;background:#121923;color:#d2dae5}
.secondary-button:disabled{opacity:.7;cursor:default}
.status-strip{display:grid;grid-template-columns:1fr repeat(4,1fr);border-top:1px solid var(--border-soft)}
.status-item,.live-state{padding:11px 14px;border-right:1px solid var(--border-soft);display:flex;gap:8px;align-items:center;justify-content:center}
.status-item:last-child{border-right:0}
.status-label{font-size:9px;color:var(--dim);text-transform:uppercase;letter-spacing:.07em}
.status-item strong{font-size:11px}
.live-state{justify-content:flex-start;color:#e6ecf5;font-size:11px}
.live-dot,.presence-dot{width:7px;height:7px;border-radius:50%;background:var(--red);box-shadow:0 0 0 5px rgba(255,111,135,.08)}
.presence-dot{background:var(--green);box-shadow:none}
.wall-controls{display:flex;align-items:center;gap:7px;padding:10px 18px;border-bottom:1px solid var(--border-soft);background:#0b1016;position:static;top:143px;z-index:15}
.control-button{border:1px solid var(--border);background:#111821;color:#8f9baa;padding:7px 9px}
.control-button.active{color:white;border-color:#37445a;background:#18212e}
.wall-position{margin-left:auto;color:var(--dim);font-size:10px}
.wall-stream{padding-bottom:100px}
.wall-post{display:grid;grid-template-columns:46px 1fr;gap:12px;padding:20px 22px;border-bottom:1px solid var(--border-soft);background:rgba(255,255,255,.002)}
.wall-post:hover{background:rgba(255,255,255,.012)}
.post-head{display:flex;align-items:center;gap:7px;font-size:12px}
.post-head strong{font-size:13px}
.user-verified{color:#7c9fff;font-size:10px}
.post-handle,.post-time{color:var(--dim)}
.post-text{font-size:14px;line-height:1.55;color:#e5e9ef;margin-top:7px;max-width:720px}
.post-video-card{margin-top:12px;height:250px;border:1px solid #293548;border-radius:15px;overflow:hidden;position:relative;background:radial-gradient(circle at 30% 35%,rgba(125,104,255,.35),transparent 24%),radial-gradient(circle at 75% 62%,rgba(62,190,222,.22),transparent 28%),linear-gradient(135deg,#121924,#090d13);display:grid;place-items:center}
.video-placeholder{text-align:center}
.video-play{width:56px;height:56px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.93);color:#10151d;margin:0 auto 8px;font-size:18px;padding-left:3px}
.video-placeholder span{font-size:11px;color:#bcc7d4}
.video-duration{position:absolute;right:10px;bottom:9px;background:rgba(0,0,0,.75);font-size:10px;padding:4px 6px;border-radius:6px}
.post-actions{display:flex;flex-wrap:wrap;gap:18px;align-items:center;margin-top:13px;color:#778496}
.post-action{border:0;background:transparent;color:inherit;padding:0;cursor:pointer;font-size:11px;display:flex;gap:5px;align-items:center}
.post-action:hover{color:#d8e0ea}
.post-action.up:hover{color:var(--green)}
.post-action.down:hover{color:var(--red)}
.post-action.comments:hover{color:#8ea4ff}
.wall-post.featured{border-left:2px solid rgba(125,104,255,.5)}
.slot-chip{margin-left:auto;border:1px solid #2a3445;color:#768399;font-size:9px;border-radius:8px;padding:3px 6px}
.past-banner{display:none;position:fixed;bottom:18px;left:50%;transform:translateX(-50%);z-index:40;background:#171f2b;border:1px solid #334156;border-radius:14px;box-shadow:var(--shadow);padding:9px 10px 9px 14px;align-items:center;gap:14px;font-size:11px}
.past-banner.show{display:flex}
.chat-header{padding:20px 18px 14px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--border)}
.chat-header h2{margin:3px 0 0;font-size:18px}
.chat-info{padding:9px 14px;display:flex;align-items:center;gap:7px;border-bottom:1px solid var(--border-soft);font-size:10px;color:#9ba6b5}
.chat-rule{margin-left:auto;color:var(--dim)}
.chat-messages{padding:10px 12px;overflow-y:auto}
.chat-message{display:grid;grid-template-columns:30px 1fr;gap:8px;padding:8px 5px}
.chat-message .avatar{width:30px;height:30px;font-size:9px}
.chat-message-head{display:flex;align-items:center;gap:5px;font-size:10px}
.chat-message-head strong{font-size:10px}
.chat-rep{font-size:9px;color:#d3ad50}
.chat-message p{margin:3px 0 0;font-size:11px;line-height:1.45;color:#cbd3dd}
.chat-compose{border-top:1px solid var(--border);padding:12px;background:#0d1219}
.chat-user-row{display:flex;align-items:center;gap:7px;color:var(--dim);font-size:9px;margin-bottom:8px}
.small-avatar{width:24px;height:24px;font-size:8px}
.chat-input-row{display:flex;gap:7px}
.chat-input-row input{min-width:0;flex:1;border:1px solid #273245;background:#080c11;color:white;padding:9px 10px;border-radius:10px;outline:none;font-size:11px}
.chat-input-row input:focus{border-color:#6257b9}
.chat-footnote{font-size:8px;color:#56616f;margin-top:7px}
.mobile-topbar{display:none}
.mobile-wall-drawer,.modal-backdrop{display:none;position:fixed;inset:0;background:rgba(0,0,0,.68);backdrop-filter:blur(7px);z-index:100;align-items:center;justify-content:center}
.mobile-wall-drawer.open,.modal-backdrop.open{display:flex}
.drawer-card,.modal{width:min(520px,calc(100vw - 28px));background:#111821;border:1px solid #2d394c;border-radius:18px;box-shadow:var(--shadow)}
.drawer-card{padding:14px}
.drawer-header,.modal-head{display:flex;align-items:center;justify-content:space-between}
.drawer-header{padding:5px 4px 12px}
.modal{padding:18px}
.modal h2{margin:4px 0 0;font-size:22px}
.modal p{font-size:12px;color:#aab4c1;line-height:1.55}
.demo-box{border:1px solid var(--border);background:#0b1016;border-radius:12px;padding:12px;margin:15px 0;display:flex;justify-content:space-between;font-size:11px}
.demo-box span{color:var(--muted)}
.toast{position:fixed;right:18px;bottom:18px;background:#eef2f7;color:#12161c;padding:10px 13px;border-radius:11px;font-size:11px;font-weight:800;z-index:200;opacity:0;transform:translateY(15px);transition:.2s;pointer-events:none}
.toast.show{opacity:1;transform:translateY(0)}
@media(max-width:1180px){
  .app{grid-template-columns:80px minmax(520px,1fr) 330px}
  .brand-row{justify-content:center;padding-bottom:24px}
  .brand-row>div{display:none}
  .main-nav .nav-link span:not(.nav-icon):not(.nav-badge){display:none}
  .main-nav .nav-link{justify-content:center}
  .nav-badge{position:absolute;margin-left:28px;margin-top:-20px}
  .joined-section .section-heading span,.wall-link-copy,.account-copy{display:none}
  .joined-section .section-heading{justify-content:center}
  .wall-link{justify-content:center}
  .account-panel{justify-content:center}
  .account-panel .icon-button{display:none}
}
@media(max-width:900px){
  .app{grid-template-columns:76px 1fr}
  .chat-rail{display:none}
}
@media(max-width:640px){
  .app{display:block}
  .left-rail{display:none}
  .mobile-topbar{display:flex;position:sticky;top:0;z-index:30;background:#0b1016;border-bottom:1px solid var(--border);padding:11px 13px;align-items:center;justify-content:space-between}
  .mobile-brand{display:flex;align-items:center;gap:8px;font-size:13px}
  .mobile-brand img{width:30px;height:30px}
  .wall-header{top:53px}
  .wall-header-top{padding:16px 14px 13px;align-items:flex-start}
  .wall-header h1{font-size:22px}
  .wall-meta{display:block}
  .wall-meta span:nth-child(2){display:none}
  .wall-meta span{display:block;margin-top:2px}
  .wall-actions{display:block}
  .wall-actions .secondary-button{display:none}
  .wall-actions .primary-button{font-size:10px;padding:8px 9px}
  .status-strip{grid-template-columns:repeat(2,1fr)}
  .live-state{display:none}
  .status-item{justify-content:flex-start}
  .status-item:nth-child(4),.status-item:nth-child(5){border-top:1px solid var(--border-soft)}
  .wall-controls{top:186px;padding:8px 10px}
  .control-button{font-size:10px}
  #historyButton{display:none}
  .wall-position{display:none}
  .wall-post{padding:17px 13px;grid-template-columns:40px 1fr}
  .avatar{width:38px;height:38px}
  .post-video-card{height:210px}
  .past-banner{width:calc(100% - 24px);justify-content:space-between}
}


/* Part 2: posting, voting, comments, reputation */
.posting-panel{border-bottom:1px solid var(--border-soft);background:#0c1118;padding:12px 18px}
.posting-status{display:flex;align-items:center;justify-content:space-between;gap:15px;border:1px solid var(--border);background:linear-gradient(180deg,#111821,#0d131b);border-radius:14px;padding:13px 14px}
.posting-status strong{display:block;font-size:12px;margin-top:3px}
.posting-status p{margin:4px 0 0;color:var(--muted);font-size:10px}
.composer-modal textarea,.comment-form textarea{width:100%;min-height:140px;resize:vertical;background:#090d13;color:#f5f7fa;border:1px solid #283446;border-radius:12px;padding:12px;outline:none;margin-top:14px}
.composer-modal textarea:focus,.comment-form textarea:focus{border-color:#6257b9}
.composer-policy{font-size:10px;color:#8d99a8;line-height:1.5;border:1px solid var(--border);background:#0b1016;border-radius:10px;padding:9px 10px;margin-top:14px}
.composer-options{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:10px;margin-top:8px}
.video-toggle{display:flex;gap:7px;align-items:center}
.composer-points-box{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:14px 0}
.composer-points-box>div{border:1px solid var(--border);background:#0b1016;border-radius:11px;padding:10px}
.composer-points-box span,.composer-points-box strong{display:block}
.composer-points-box span{color:var(--muted);font-size:9px}
.composer-points-box strong{font-size:13px;margin-top:3px}
.composer-submit-row{display:flex;gap:8px;justify-content:flex-end}
.vote-active-up{color:var(--green)!important}
.vote-active-down{color:var(--red)!important}
.comment-count-highlight{color:#96a9ff}
.comments-modal{max-height:85vh;display:flex;flex-direction:column}
.commented-post-preview{border:1px solid var(--border);background:#0b1016;border-radius:12px;padding:12px;margin:14px 0 8px;font-size:11px;line-height:1.5}
.comments-list{overflow:auto;display:grid;gap:8px;padding:4px 2px 8px;min-height:100px;max-height:420px}
.comment-card{border:1px solid var(--border-soft);background:#0c1219;border-radius:12px;padding:10px}
.comment-card-head{display:flex;align-items:center;gap:6px;font-size:10px}
.comment-card-head strong{font-size:10px}
.comment-card-text{font-size:11px;line-height:1.5;color:#d3d9e1;margin:6px 0 8px}
.comment-votes{display:flex;gap:10px}
.comment-votes button{border:0;background:transparent;color:#7f8b9a;font-size:10px;cursor:pointer}
.comment-votes button:hover{color:white}
.comment-form{border-top:1px solid var(--border);padding-top:10px;margin-top:5px}
.comment-form textarea{min-height:76px;margin-top:0}
.comment-form-row{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:9px;margin-top:7px}
.rep-delta{font-size:9px;margin-left:auto}
.rep-positive{color:var(--green)}
.rep-negative{color:var(--red)}
.user-post-label{font-size:9px;border:1px solid rgba(125,104,255,.35);color:#ad9fff;padding:3px 6px;border-radius:7px}
.priority-earned{color:var(--gold)!important}
@media(max-width:640px){
  .posting-panel{padding:10px}
  .posting-status{align-items:flex-start}
  .posting-status-actions .secondary-button{font-size:10px;padding:8px}
  .composer-points-box{grid-template-columns:1fr}
  .composer-submit-row{flex-direction:column}
  .composer-submit-row button{width:100%}
}


/* Part 3 */
.hidden{display:none!important}
.founder-panel{margin:12px 18px 0;border:1px solid rgba(246,200,95,.28);background:linear-gradient(180deg,rgba(246,200,95,.06),rgba(15,20,27,.96));border-radius:14px;padding:13px 14px;display:flex;justify-content:space-between;align-items:center;gap:16px}
.founder-panel strong{display:block;font-size:12px;margin-top:3px}
.founder-panel p{font-size:10px;color:var(--muted);margin:4px 0 0}
.founder-actions{display:flex;gap:8px}
.auth-note,.approval-rule,.privacy-note,.membership-note{border:1px solid var(--border);background:#0b1016;border-radius:10px;padding:9px 10px;color:#9aa6b5;font-size:10px;line-height:1.5;margin:12px 0}
.form-label{display:block;color:#8995a5;font-size:10px;margin-top:11px}
.form-label input,.form-label textarea,.form-label select{display:block;width:100%;margin-top:6px;background:#090d13;color:white;border:1px solid #283446;border-radius:10px;padding:10px;outline:none}
.form-label textarea{resize:vertical;min-height:74px}
.form-label select{appearance:none}
.auth-modal .primary-button,.proposal-modal .primary-button,.verify-modal .primary-button{margin-top:14px}
.verification-copy{color:#b5bfca;font-size:11px;line-height:1.55}
.verification-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}
.verification-grid>div{border:1px solid var(--border);background:#0b1016;border-radius:11px;padding:10px}
.verification-grid span,.verification-grid strong{display:block}
.verification-grid span{font-size:9px;color:var(--dim)}
.verification-grid strong{font-size:11px;margin-top:4px}
.account-summary{border:1px solid var(--border);background:#0b1016;border-radius:12px;padding:12px;margin-top:14px;font-size:11px;line-height:1.6}
.membership-cards{display:grid;gap:8px;margin-top:12px}
.membership-card{border:1px solid var(--border);background:#0d141d;border-radius:12px;padding:11px;text-align:left;cursor:pointer}
.membership-card:hover,.membership-card.active{border-color:#6e62d2;background:#151b2a}
.membership-card strong,.membership-card span{display:block}
.membership-card strong{font-size:12px}
.membership-card span{font-size:9px;color:var(--muted);margin-top:3px}
.status-strip{grid-template-columns:1fr repeat(5,1fr)}
.sponsor-locked{color:#6f7a89}
.proposal-status{font-size:9px;color:var(--gold);margin-left:auto}
@media(max-width:640px){
  .founder-panel{margin:10px;align-items:flex-start;flex-direction:column}
  .founder-actions{width:100%}
  .founder-actions button{flex:1}
  .verification-grid{grid-template-columns:1fr}
  .status-strip{grid-template-columns:repeat(2,1fr)}
  .status-item:nth-child(n+2){border-top:1px solid var(--border-soft)}
}


/* Posting windows, saved drafts, and guaranteed reservations */
.posting-window-card{border:1px solid var(--border);background:linear-gradient(180deg,#111821,#0d131b);border-radius:15px;padding:14px}
.posting-window-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.posting-phase-row{display:flex;align-items:center;gap:8px;margin-top:4px}
.posting-phase-row strong{font-size:12px}
.posting-window-head p{margin:5px 0 0;color:var(--muted);font-size:10px}
.phase-badge{font-size:8px;font-weight:900;letter-spacing:.08em;border-radius:7px;padding:4px 6px;border:1px solid #3a4657;color:#9ba7b6;background:#111720}
.phase-badge.open{border-color:rgba(89,214,162,.4);background:rgba(89,214,162,.08);color:var(--green)}
.phase-badge.complete{border-color:rgba(255,111,135,.35);background:rgba(255,111,135,.07);color:var(--red)}
.phase-badge.reserved{border-color:rgba(246,200,95,.4);background:rgba(246,200,95,.08);color:var(--gold)}
.window-clock{text-align:right;min-width:86px}
.window-clock span,.window-clock strong{display:block}
.window-clock span{font-size:8px;color:var(--dim);text-transform:uppercase;letter-spacing:.08em}
.window-clock strong{font-variant-numeric:tabular-nums;font-size:15px;margin-top:3px}
.posting-capacity-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin-top:12px}
.posting-capacity-grid>div{background:#0a0f15;border:1px solid var(--border-soft);border-radius:10px;padding:9px}
.posting-capacity-grid span,.posting-capacity-grid strong{display:block}
.posting-capacity-grid span{font-size:8px;color:var(--dim);text-transform:uppercase;letter-spacing:.06em}
.posting-capacity-grid strong{font-size:11px;margin-top:3px}
.posting-status-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}
.draft-preserved{display:flex;gap:9px;align-items:flex-start;margin-top:10px;border:1px solid rgba(125,104,255,.25);background:rgba(125,104,255,.05);border-radius:10px;padding:9px}
.draft-preserved span{color:#a89aff}
.draft-preserved strong{font-size:10px}
.draft-preserved p{margin:2px 0 0;color:#8f9baa;font-size:9px;line-height:1.45}
.composer-lock-message{border:1px solid rgba(255,111,135,.25);background:rgba(255,111,135,.06);color:#dca6b0;border-radius:10px;padding:9px 10px;margin-top:12px;font-size:10px;line-height:1.5}
.composer-modal textarea:disabled{opacity:.62;cursor:not-allowed;background:#090b0f}
.video-toggle.locked{opacity:.5;pointer-events:none}
.slot-breakdown{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:12px 0}
.slot-breakdown>div{border:1px solid var(--border);background:#0b1016;border-radius:10px;padding:9px}
.slot-breakdown span,.slot-breakdown strong{display:block}
.slot-breakdown span{font-size:8px;color:var(--dim)}
.slot-breakdown strong{font-size:11px;margin-top:3px}
.prototype-controls{border-top:1px solid var(--border);margin-top:16px;padding-top:14px}
.prototype-controls p{font-size:9px;color:var(--dim);margin:5px 0 9px}
.prototype-button-row{display:flex;gap:6px;flex-wrap:wrap}
.prototype-button-row button{font-size:9px;padding:7px 8px}
.reservation-note{color:var(--gold)!important}
@media(max-width:640px){
 .posting-window-head{flex-direction:column}
 .window-clock{text-align:left}
 .posting-capacity-grid{grid-template-columns:1fr 1fr}
 .posting-status-actions{display:grid;grid-template-columns:1fr 1fr}
 .slot-breakdown{grid-template-columns:1fr}
 .composer-submit-row{display:grid}
}


/* Part 5: profiles, discovery, approvals, memberships, perks, notifications */
.wall-theme{max-width:680px;margin-top:7px;color:#798697;font-size:10px;line-height:1.45}
.wide-modal{width:min(820px,calc(100vw - 28px));max-height:88vh;overflow:auto}
.profile-hero{margin-top:14px;border:1px solid var(--border);background:radial-gradient(circle at 80% 15%,rgba(125,104,255,.25),transparent 25%),linear-gradient(135deg,#141b27,#0b1016);border-radius:16px;padding:18px;display:flex;gap:14px;align-items:center}
.profile-hero .avatar{width:68px;height:68px;font-size:18px}
.profile-hero-copy h3{margin:0;font-size:20px}
.profile-hero-copy p{margin:5px 0;color:var(--muted);font-size:11px}
.profile-facts{display:flex;gap:10px;flex-wrap:wrap;margin-top:9px}
.profile-fact{border:1px solid var(--border);background:#0b1016;border-radius:9px;padding:6px 8px;font-size:9px;color:#9aa6b5}
.profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}
.profile-card{border:1px solid var(--border);background:#0d131b;border-radius:14px;padding:13px}
.profile-posts-card{margin-top:10px}
.rep-score-big{font-size:30px;font-weight:900;letter-spacing:-.04em;margin-top:4px}
.rep-tier{font-size:11px;color:#b8c3d0;margin-top:3px}
.rep-progress{height:7px;border-radius:20px;background:#080c12;overflow:hidden;margin:11px 0 7px;border:1px solid #1d2734}
.rep-progress>span{display:block;height:100%;background:linear-gradient(90deg,#7d68ff,#44c7dc)}
.perk-list{display:grid;gap:6px;margin-top:10px}
.perk-item{display:flex;justify-content:space-between;gap:10px;border-top:1px solid var(--border-soft);padding-top:7px;font-size:10px}
.perk-item span{color:var(--muted)}
.perk-item strong.unlocked{color:var(--green)}
.perk-item strong.locked{color:#697482}
.mini-wall-row,.history-row,.reservation-row,.notification-row,.approval-row{border:1px solid var(--border-soft);background:#0a1017;border-radius:11px;padding:10px;margin-top:8px}
.mini-wall-row{display:flex;align-items:center;gap:9px}
.mini-wall-row .wall-orb{flex:0 0 auto}
.mini-wall-copy{min-width:0;flex:1}
.mini-wall-copy strong,.mini-wall-copy span{display:block}
.mini-wall-copy span{font-size:9px;color:var(--muted);margin-top:2px}
.history-row strong{display:block;font-size:10px}
.history-row p{font-size:10px;color:#aeb8c5;line-height:1.45;margin:5px 0}
.history-row small{color:var(--dim);font-size:9px}
.discover-search-row{display:flex;gap:8px;margin-top:14px}
.discover-search-row input{flex:1;background:#090d13;color:#fff;border:1px solid #283446;border-radius:11px;padding:10px;outline:none}
.discover-wall-list{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}
.discover-card{border:1px solid var(--border);background:#0d141d;border-radius:14px;padding:13px}
.discover-card-head{display:flex;gap:9px;align-items:center}
.discover-card h3{font-size:13px;margin:0}
.discover-card .wall-category{font-size:9px;color:var(--muted);margin-top:2px}
.discover-card p{font-size:10px;color:#a7b1bd;line-height:1.5;min-height:46px}
.discover-card-foot{display:flex;justify-content:space-between;align-items:center;gap:8px;color:var(--dim);font-size:9px}
.discover-card-actions{display:flex;gap:6px}
.slot-history-section{margin-top:12px}
.slot-history-section>h3{font-size:12px;margin:0 0 8px}
.reservation-row{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center}
.reservation-row strong,.reservation-row span{display:block}
.reservation-row span{font-size:9px;color:var(--muted);margin-top:2px}
.queue-chip{border:1px solid rgba(125,104,255,.35);color:#afa3ff;background:rgba(125,104,255,.08);padding:5px 8px;border-radius:9px;font-size:9px}
.notifications-list{display:grid;gap:7px;margin-top:10px}
.notification-row{display:flex;gap:10px}
.notification-row.unread{border-color:#3c3a67;background:#101224}
.notification-icon{width:32px;height:32px;border-radius:10px;background:#171f2c;display:grid;place-items:center;flex:0 0 auto}
.notification-copy{flex:1}
.notification-copy strong{display:block;font-size:10px}
.notification-copy p{font-size:10px;color:#a6b0bd;margin:3px 0}
.notification-copy small{font-size:9px;color:var(--dim)}
.notification-actions{text-align:right;margin-top:10px}
.approval-explainer{font-size:10px;color:#98a4b3;line-height:1.5;border:1px solid var(--border);background:#0b1016;padding:10px;border-radius:10px;margin-top:12px}
.approval-row h3{font-size:13px;margin:0}
.approval-row p{font-size:10px;color:#aab4c0;line-height:1.5}
.approval-meta{display:flex;gap:7px;flex-wrap:wrap;font-size:9px;color:var(--dim)}
.approval-actions{display:flex;gap:7px;margin-top:9px}
.approval-status-approved{color:var(--green)}
.approval-status-rejected{color:var(--red)}
@media(max-width:640px){
  .profile-grid,.discover-wall-list{grid-template-columns:1fr}
  .discover-search-row{flex-direction:column}
  .reservation-row{grid-template-columns:1fr}
}


/* Part 6: friends + private chat */
.chat-header-stacked{display:block;padding:16px 14px 10px}
.chat-header-top{display:flex;justify-content:space-between;align-items:center}
.chat-mode-switch{display:grid;grid-template-columns:1fr 1fr;gap:5px;background:#0a0f15;border:1px solid var(--border);padding:4px;border-radius:11px;margin-top:11px}
.chat-mode-button{border:0;background:transparent;color:#748091;border-radius:8px;padding:7px 8px;font-size:10px;font-weight:800;cursor:pointer}
.chat-mode-button.active{background:#18212d;color:#fff}
.chat-pane{display:none;min-height:0;height:100%;overflow:hidden}
.chat-pane.active{display:grid}
#wallChatPane{grid-template-rows:auto 1fr auto}
#privateChatPane{grid-template-rows:auto 1fr}
.friend-toolbar{display:flex;justify-content:space-between;align-items:center;padding:10px 12px;border-bottom:1px solid var(--border-soft)}
.friend-toolbar strong,.friend-toolbar span{display:block}
.friend-toolbar strong{font-size:11px}
.friend-toolbar span{font-size:9px;color:var(--muted);margin-top:2px}
.private-chat-layout{display:grid;grid-template-columns:112px 1fr;min-height:0;height:100%}
.friend-list{border-right:1px solid var(--border-soft);overflow-y:auto;padding:6px}
.friend-list-item{display:flex;gap:7px;align-items:center;width:100%;border:0;background:transparent;color:#a8b2bf;border-radius:9px;padding:7px 6px;text-align:left;cursor:pointer}
.friend-list-item:hover,.friend-list-item.active{background:#151d28;color:#fff}
.friend-list-item .avatar{width:28px;height:28px;font-size:8px}
.friend-list-copy{min-width:0}
.friend-list-copy strong,.friend-list-copy span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.friend-list-copy strong{font-size:9px}
.friend-list-copy span{font-size:8px;color:var(--dim);margin-top:2px}
.private-conversation{display:grid;grid-template-rows:auto 1fr auto;min-width:0;min-height:0}
.private-conversation-head{border-bottom:1px solid var(--border-soft);padding:9px 10px}
.private-conversation-head strong,.private-conversation-head span{display:block}
.private-conversation-head strong{font-size:10px}
.private-conversation-head span{font-size:8px;color:var(--muted);margin-top:2px}
.private-messages{overflow-y:auto;padding:10px;display:flex;flex-direction:column;gap:7px}
.private-empty-state{margin:auto;color:var(--dim);font-size:9px;text-align:center;line-height:1.5}
.private-bubble{max-width:82%;padding:8px 9px;border-radius:11px;background:#18212d;font-size:9px;line-height:1.45}
.private-bubble.me{align-self:flex-end;background:linear-gradient(135deg,#7058e8,#826df4);color:#fff}
.private-bubble small{display:block;font-size:7px;color:#96a2b2;margin-top:3px}
.private-compose{display:flex;gap:6px;padding:9px;border-top:1px solid var(--border-soft)}
.private-compose input{flex:1;min-width:0;background:#080c11;border:1px solid #283446;border-radius:9px;color:white;padding:8px 9px;font-size:9px}
.friend-search-results{display:grid;gap:8px;margin-top:12px}
.friend-result,.friend-request-row{border:1px solid var(--border);background:#0b1016;border-radius:11px;padding:10px;display:flex;gap:10px;align-items:center}
.friend-result-copy,.friend-request-copy{flex:1;min-width:0}
.friend-result-copy strong,.friend-result-copy span,.friend-request-copy strong,.friend-request-copy span{display:block}
.friend-result-copy strong,.friend-request-copy strong{font-size:10px}
.friend-result-copy span,.friend-request-copy span{font-size:9px;color:var(--muted);margin-top:2px}
.friend-request-actions{display:flex;gap:6px}
.friend-request-badge{background:var(--accent);color:#fff;min-width:18px;height:18px;border-radius:20px;display:grid;place-items:center;font-size:8px;font-weight:900;margin-left:4px}
@media(max-width:1180px){
  .private-chat-layout{grid-template-columns:92px 1fr}
}


/* Part 7: unread state, friend profiles, blocking, group chats */
.chat-unread-badge{display:none;min-width:16px;height:16px;border-radius:20px;background:var(--red);color:#fff;font-size:8px;place-items:center;margin-left:4px;padding:0 4px}
.friend-toolbar-actions{display:flex;gap:5px}
.private-chat-subtabs{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid var(--border-soft);background:#0a0f15}
.private-subtab{border:0;background:transparent;color:#748091;padding:8px;font-size:9px;font-weight:800;cursor:pointer}
.private-subtab.active{color:white;background:#111923}
.friend-unread{margin-left:auto;min-width:17px;height:17px;border-radius:20px;background:var(--accent);display:grid;place-items:center;font-size:8px;color:#fff;padding:0 4px}
.private-conversation-head{display:flex;justify-content:space-between;align-items:center}
.friend-profile-body{margin-top:14px;border:1px solid var(--border);background:#0b1016;border-radius:14px;padding:14px}
.friend-profile-hero{display:flex;gap:12px;align-items:center}
.friend-profile-hero .avatar{width:58px;height:58px;font-size:15px}
.friend-profile-copy strong,.friend-profile-copy span{display:block}
.friend-profile-copy strong{font-size:15px}
.friend-profile-copy span{font-size:10px;color:var(--muted);margin-top:3px}
.friend-profile-stats{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}
.friend-profile-stat{border:1px solid var(--border-soft);background:#0d141d;border-radius:10px;padding:9px}
.friend-profile-stat span,.friend-profile-stat strong{display:block}
.friend-profile-stat span{font-size:8px;color:var(--dim)}
.friend-profile-stat strong{font-size:11px;margin-top:3px}
.friend-profile-actions{display:flex;gap:8px;margin-top:12px}
.friend-profile-actions button{flex:1}
.danger-button{border:1px solid rgba(255,111,135,.35);background:rgba(255,111,135,.08);color:#ff9bad;border-radius:11px;padding:9px 12px;font-weight:800;cursor:pointer}
.danger-button:hover{background:rgba(255,111,135,.15)}
.group-friend-picker{display:grid;gap:7px;margin:12px 0}
.group-pick-row{display:flex;gap:8px;align-items:center;border:1px solid var(--border);background:#0b1016;border-radius:10px;padding:8px}
.group-pick-row label{display:flex;gap:8px;align-items:center;flex:1;cursor:pointer}
.group-pick-row .avatar{width:28px;height:28px;font-size:8px}
.group-member-summary{font-size:9px;color:var(--muted);margin-top:2px}
.group-chat-label{font-size:8px;color:#d1b85f;margin-top:2px}
.conversation-option-row{border:1px solid var(--border);background:#0b1016;border-radius:11px;padding:10px;margin-top:8px}
.conversation-option-row strong,.conversation-option-row span{display:block}
.conversation-option-row strong{font-size:10px}
.conversation-option-row span{font-size:9px;color:var(--muted);margin-top:3px}
.conversation-option-row button{margin-top:8px}
.blocked-note{color:#ff9bad;font-size:9px;margin-top:6px}


/* Part 8: editable profiles, mentions, message search, attachments, reports */
.modal-head-actions{display:flex;gap:7px;align-items:center}
.profile-public-bio{margin-top:8px;color:#c2cad4;font-size:11px;line-height:1.5}
.profile-public-links{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.profile-public-link{font-size:9px;color:#a99eff;border:1px solid #353257;background:#111225;border-radius:8px;padding:5px 7px}
.profile-toggle-row{display:flex;gap:8px;align-items:center;margin:12px 0;color:#a8b2bf;font-size:10px}
.mention{color:#9c91ff;font-weight:800}
.private-compose-rich{align-items:flex-end}
.private-compose-main{flex:1;min-width:0}
.private-compose-main input{width:100%}
.attachment-button{width:31px;height:31px;border:1px solid #283446;background:#0e151e;color:#a8b3c1;border-radius:9px;cursor:pointer}
.attachment-button:disabled{opacity:.45;cursor:default}
.pending-attachment{display:none;margin-bottom:5px;border:1px solid var(--border);background:#101721;border-radius:8px;padding:6px 8px;font-size:8px;color:#aeb8c5}
.pending-attachment.show{display:flex;justify-content:space-between;gap:7px;align-items:center}
.pending-attachment button{border:0;background:transparent;color:#ff9bad;cursor:pointer}
.message-attachment{margin-top:6px;border:1px solid rgba(255,255,255,.12);background:rgba(0,0,0,.14);border-radius:9px;padding:7px}
.message-attachment img{display:block;max-width:180px;max-height:140px;border-radius:7px;margin-bottom:5px}
.message-file-chip{font-size:8px;color:#c5ced9;word-break:break-all}
.message-search-bar{margin-top:13px}
.message-search-bar input{width:100%;border:1px solid #283446;background:#090d13;color:white;border-radius:11px;padding:10px}
.message-search-results{display:grid;gap:7px;margin-top:10px}
.message-search-result{border:1px solid var(--border);background:#0b1016;border-radius:11px;padding:10px;cursor:pointer}
.message-search-result:hover{border-color:#4b477c}
.message-search-result strong,.message-search-result span,.message-search-result p{display:block}
.message-search-result strong{font-size:10px}
.message-search-result span{font-size:8px;color:var(--muted);margin-top:2px}
.message-search-result p{font-size:10px;color:#c0c8d2;line-height:1.45;margin:5px 0 0}
.post-menu-row{margin-left:auto;display:flex;gap:3px}
.inline-report-button{border:0;background:transparent;color:#5f6b7a;font-size:10px;cursor:pointer;padding:2px 4px}
.inline-report-button:hover{color:#ff91a4}
.comment-card-head .inline-report-button{margin-left:auto}
.private-bubble{position:relative}
.private-bubble .message-report-button{display:none;position:absolute;top:3px;right:4px;border:0;background:transparent;color:#96a2b2;font-size:8px;cursor:pointer}
.private-bubble:hover .message-report-button{display:block}
.reports-queue{display:grid;gap:8px;margin-top:12px}
.report-row{border:1px solid var(--border);background:#0b1016;border-radius:11px;padding:10px}
.report-row h3{font-size:11px;margin:0}
.report-row p{font-size:10px;color:#aeb8c5;line-height:1.5;margin:5px 0}
.report-meta{display:flex;gap:7px;flex-wrap:wrap;font-size:8px;color:var(--dim)}
.report-actions{display:flex;gap:6px;margin-top:8px}
.report-status-reviewed{color:var(--green)}
.report-status-actioned{color:#f1c96f}


/* Part 9: public profiles, mention autocomplete, wall archive, privacy, restrictions */
.user-name-link{background:transparent;border:0;color:inherit;padding:0;font:inherit;font-weight:inherit;cursor:pointer}
.user-name-link:hover{text-decoration:underline}
.mention-input-wrap,.mention-input-inline{position:relative}
.mention-input-inline{flex:1;min-width:0}
.mention-input-inline>input{width:100%}
.mention-suggestions{display:none;position:absolute;left:0;right:0;bottom:calc(100% + 5px);z-index:80;background:#111821;border:1px solid #344154;border-radius:10px;box-shadow:0 16px 45px rgba(0,0,0,.35);overflow:hidden;max-height:190px;overflow-y:auto}
.mention-input-wrap .mention-suggestions{bottom:auto;top:calc(100% + 5px)}
.mention-suggestions.show{display:block}
.mention-suggestion{width:100%;border:0;border-bottom:1px solid var(--border-soft);background:transparent;color:#cfd7e2;padding:8px 10px;display:flex;gap:8px;align-items:center;text-align:left;cursor:pointer}
.mention-suggestion:last-child{border-bottom:0}
.mention-suggestion:hover{background:#18212d}
.mention-suggestion .avatar{width:27px;height:27px;font-size:8px}
.mention-suggestion-copy strong,.mention-suggestion-copy span{display:block}
.mention-suggestion-copy strong{font-size:9px}
.mention-suggestion-copy span{font-size:8px;color:var(--muted);margin-top:2px}
.archive-search-grid{display:grid;grid-template-columns:1fr 170px 190px;gap:8px;margin-top:14px}
.archive-search-grid input,.archive-search-grid select{background:#090d13;color:#fff;border:1px solid #283446;border-radius:10px;padding:9px}
.archive-summary{font-size:9px;color:var(--muted);margin:10px 0}
.archive-results{display:grid;gap:8px}
.archive-navigation{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.archive-tabs{display:flex;gap:8px;flex-wrap:wrap}
.archive-tabs [aria-selected="true"]{border-color:var(--accent);color:var(--accent)}
.archive-year-label{display:flex;align-items:center;gap:8px;font-size:12px}
.archive-year-label select{background:#090d13;color:#fff;border:1px solid #283446;border-radius:10px;padding:9px;font:inherit}
.archive-year-note{font-size:11px;line-height:1.5;color:var(--muted);margin:12px 0}
.archive-team-disclosure{display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:10px;color:var(--muted);margin-top:8px}
.archive-recipe-figure{margin:12px 0;max-width:640px}
.archive-recipe-figure img{display:block;width:100%;height:auto;border-radius:10px}
.archive-recipe-figure figcaption{font-size:12px;line-height:1.5;color:var(--muted);margin-top:6px}
.archive-load-more{margin-top:14px;min-height:40px}
.archive-load-more[hidden]{display:none}
.archive-results .archive-result-head{flex-wrap:wrap;font-size:12px;line-height:1.5}
.archive-results .archive-result-head strong,.archive-results .archive-author-link{font-size:13px}
.archive-results .archive-result p{font-size:13px;line-height:1.6}
.archive-results .archive-result-foot{font-size:11px}
#archiveModal .archive-summary{font-size:12px;line-height:1.5}
.archive-result{border:1px solid var(--border);background:#0b1016;border-radius:12px;padding:11px}
.archive-result-head{display:flex;gap:7px;align-items:center;font-size:9px;color:var(--muted)}
.archive-result-head strong{font-size:10px;color:#fff}
.archive-result p{font-size:10px;line-height:1.5;color:#c7cfd9;margin:6px 0}
.archive-result-foot{display:flex;gap:10px;font-size:8px;color:var(--dim)}
.restriction-card{border:1px solid var(--border);background:#0b1016;border-radius:12px;padding:11px;margin-top:9px}
.restriction-card h3{font-size:11px;margin:0}
.restriction-card p{font-size:9px;color:var(--muted);line-height:1.5}
.restriction-controls{display:grid;grid-template-columns:1fr 1fr 1fr;gap:7px;margin-top:8px}
.restriction-controls button{font-size:9px}
.restriction-status{font-size:9px;color:#f0c66a;margin-top:6px}
@media(max-width:640px){
  .archive-search-grid{grid-template-columns:1fr}
  .restriction-controls{grid-template-columns:1fr}
}

/* Part 10: backend/session scaffold */
.auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:5px;background:#0a0f15;border:1px solid var(--border);padding:4px;border-radius:11px;margin-top:12px}
.auth-tab{border:0;background:transparent;color:#788596;border-radius:8px;padding:8px;font-size:10px;font-weight:800;cursor:pointer}
.auth-tab.active{background:#18212d;color:white}
.login-fields.hidden{display:none}
.backend-status{border:1px solid var(--border);background:#0b1016;border-radius:10px;padding:8px 10px;margin-top:12px;color:var(--muted);font-size:9px}
.secondary-button.full{width:100%;margin-top:10px}


/* Part 14: real API UI bridge */
.server-mode-bar{display:flex;align-items:center;gap:6px;padding:6px 16px;border-bottom:1px solid var(--border-soft);background:#0d1714;color:#8bd3b0;font-size:9px;font-weight:800}
.server-mode-bar.hidden{display:none}
.server-mode-dot{width:6px;height:6px;border-radius:50%;background:#58d39e;box-shadow:0 0 0 4px rgba(88,211,158,.08)}
.server-syncing{opacity:.65;pointer-events:none}
.backend-empty{padding:36px 20px;text-align:center;color:var(--muted);font-size:11px;border-bottom:1px solid var(--border-soft)}
.backend-error{margin:10px 18px;border:1px solid rgba(255,111,135,.3);background:rgba(255,111,135,.06);color:#ff9bad;border-radius:10px;padding:9px 10px;font-size:9px}


/* Server social state and media composer */
.composer-media-controls{display:flex;gap:7px;align-items:center;min-width:0}
.demo-video-toggle{display:none}
#composerMediaStatus{max-width:210px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.composer-media-preview{margin-top:9px;border:1px solid var(--border);background:#0b1016;border-radius:11px;padding:9px}
.composer-media-preview.hidden{display:none}
.composer-media-preview img,.composer-media-preview video{display:block;max-width:100%;max-height:220px;border-radius:8px;margin:auto}
.optimistic-post{opacity:.72;border-left:2px solid #d7b85d}
.optimistic-chip{font-size:8px;color:#e3c76f;border:1px solid rgba(227,199,111,.3);border-radius:7px;padding:3px 5px}
.friend-server-status{font-size:8px;color:#75d4a4;margin-top:2px}
.server-conversation-label{font-size:8px;color:#798797;margin-top:2px}


/* Part 16: media serving, account tools, unread state, admin */
.account-tools{margin-top:12px}
.admin-summary-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-top:14px}
.admin-stat{border:1px solid var(--border);background:#0b1016;border-radius:12px;padding:11px}
.admin-stat span,.admin-stat strong{display:block}
.admin-stat span{font-size:8px;color:var(--muted)}
.admin-stat strong{font-size:18px;margin-top:4px}
.admin-audit-list{display:grid;gap:7px;margin-top:14px}
.admin-audit-row{border:1px solid var(--border);background:#0b1016;border-radius:10px;padding:9px}
.admin-audit-row strong,.admin-audit-row span{display:block}
.admin-audit-row strong{font-size:10px}
.admin-audit-row span{font-size:8px;color:var(--muted);margin-top:3px}
.post-media-live{margin-top:9px;border-radius:11px;overflow:hidden;border:1px solid var(--border)}
.post-media-live img,.post-media-live video{display:block;width:100%;max-height:420px;object-fit:contain;background:#05070a}
@media(max-width:760px){.admin-summary-grid{grid-template-columns:1fr 1fr}}


/* Part 17: launch readiness, accessibility, session management */
.skip-link{position:fixed;left:12px;top:-60px;z-index:9999;background:#fff;color:#000;padding:8px 12px;border-radius:8px;font-size:12px;font-weight:800}
.skip-link:focus{top:12px}
:focus-visible{outline:2px solid #9f92ff;outline-offset:2px}
.session-toolbar{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-top:12px;color:var(--muted);font-size:10px}
.session-list{display:grid;gap:8px;margin-top:12px}
.session-row{display:flex;gap:10px;align-items:center;border:1px solid var(--border);background:#0b1016;border-radius:12px;padding:10px}
.session-copy{flex:1;min-width:0}
.session-copy strong,.session-copy span{display:block}
.session-copy strong{font-size:10px}
.session-copy span{font-size:8px;color:var(--muted);margin-top:3px}
.session-current{color:#74d9a8;font-size:8px;font-weight:800}
@media(max-width:760px){
  .left-sidebar{width:72px}
  .left-sidebar .brand-copy,.left-sidebar .nav-link span:not(.nav-icon),.left-sidebar .sidebar-section-title,.left-sidebar .wall-link-copy,.left-sidebar .account-copy{display:none}
  .main-layout{grid-template-columns:72px minmax(0,1fr)}
  .chat-rail{position:fixed;right:0;top:0;bottom:0;width:min(92vw,380px);z-index:120;box-shadow:-20px 0 50px rgba(0,0,0,.45)}
  .wall-main{min-width:0}
  .status-strip{overflow-x:auto;grid-template-columns:repeat(6,minmax(120px,1fr))}
  .wall-header{padding-left:12px;padding-right:12px}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;animation-duration:.001ms!important;transition-duration:.001ms!important}
}


/* Part 18: release-candidate UX */
.wall-header-actions,.chat-header-actions{display:flex;gap:6px;align-items:center}
.mobile-chat-toggle,.mobile-chat-close{display:none}
.legal-links{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px;font-size:9px}
.legal-links a{color:var(--muted);text-decoration:none}
.legal-links a:hover{text-decoration:underline;color:#fff}
.danger-button.full{width:100%;margin-top:10px}
@media(max-width:760px){
  .mobile-chat-toggle,.mobile-chat-close{display:inline-flex}
  .chat-rail{transform:translateX(105%);transition:transform .18s ease}
  .chat-rail.mobile-open{transform:translateX(0)}
}

/* Part 19: access marketplace */
.market-modal{width:min(1080px,94vw);max-width:1080px;max-height:92vh;overflow:auto}
.market-notice{margin-top:12px;border:1px solid #3b395d;background:#111225;color:#bcb6e8;border-radius:11px;padding:10px 12px;font-size:9px;line-height:1.5}
.market-kpi-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin-top:12px}
.market-kpi{border:1px solid var(--border);background:#0b1016;border-radius:11px;padding:10px;min-width:0}
.market-kpi span,.market-kpi strong,.market-kpi small{display:block}.market-kpi span{font-size:8px;color:var(--muted)}.market-kpi strong{font-size:15px;margin-top:4px}.market-kpi small{font-size:7px;color:var(--dim);margin-top:3px}
.market-section-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:10px;margin-top:10px}.market-card{border:1px solid var(--border);background:#0b1016;border-radius:13px;padding:12px}.market-wide-card{margin-top:10px}.market-card-head{display:flex;justify-content:space-between;gap:10px;align-items:center}.market-card h3{font-size:13px;margin:2px 0 0}
.market-assets{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:10px}.market-asset{border:1px solid var(--border-soft);background:#0d141d;border-radius:10px;padding:9px}.market-asset span,.market-asset strong,.market-asset small{display:block}.market-asset span{font-size:8px;color:var(--muted)}.market-asset strong{font-size:13px;margin-top:3px}.market-asset small{font-size:7px;color:var(--dim);margin-top:3px}
.market-listings{display:grid;gap:6px;margin-top:10px}.market-listing{display:grid;grid-template-columns:1.4fr .9fr .7fr .7fr auto;gap:8px;align-items:center;border:1px solid var(--border-soft);border-radius:10px;padding:9px}.market-listing strong,.market-listing span,.market-listing small{display:block}.market-listing strong{font-size:9px}.market-listing span,.market-listing small{font-size:8px;color:var(--muted)}
.market-history{display:grid;gap:5px;margin-top:10px}.market-history-row{display:grid;grid-template-columns:1fr 1fr 1fr 1fr;gap:8px;border-bottom:1px solid var(--border-soft);padding:6px 2px;font-size:8px;color:var(--muted)}.market-history-row strong{color:#fff}.market-footnote{font-size:8px;line-height:1.5;color:var(--dim);margin:12px 2px 0}
@media(max-width:900px){.market-kpi-grid{grid-template-columns:repeat(2,1fr)}.market-section-grid{grid-template-columns:1fr}.market-listing{grid-template-columns:1fr 1fr}.market-listing button{grid-column:1/-1}.market-assets{grid-template-columns:1fr 1fr}}


/* Part 21: Hall of Fame */
.hof-readonly-banner{display:flex;align-items:center;gap:9px;padding:10px 16px;background:linear-gradient(90deg,rgba(222,184,75,.10),rgba(222,184,75,.02));border-bottom:1px solid rgba(222,184,75,.24);color:#e9cd78;font-size:10px;font-weight:800}
.hof-card{border-left:2px solid #d9b854}
.hof-trophy{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:rgba(217,184,84,.12);border:1px solid rgba(217,184,84,.3);font-size:16px}
.hof-source{display:flex;gap:6px;flex-wrap:wrap;margin:6px 0 8px;font-size:8px;color:#d4bc73}
.hof-chip{border:1px solid rgba(217,184,84,.25);background:rgba(217,184,84,.06);border-radius:8px;padding:4px 6px}
.hof-stats{display:flex;gap:12px;margin-top:10px;color:var(--muted);font-size:9px}
.hof-stats strong{color:#fff}
.hof-readonly-note{padding:22px;text-align:center;color:var(--muted);font-size:10px;line-height:1.5}
.hof-weekly-ballot{margin:14px 18px 20px;padding:18px;border:1px solid rgba(22,211,194,.55);border-radius:16px;background:linear-gradient(145deg,rgba(9,35,49,.98),rgba(7,20,35,.98));box-shadow:0 12px 28px rgba(0,0,0,.22)}
.hof-ballot-header{padding:4px 2px 14px;border-bottom:1px solid rgba(22,211,194,.22)}
.hof-ballot-kicker{color:#42e5d0;font-size:10px;font-weight:900;letter-spacing:.16em}
.hof-ballot-header h2{margin:7px 0 5px;color:#ffe0a1;font-family:Georgia,serif;font-size:clamp(20px,2vw,28px)}
.hof-ballot-header p,.hof-ballot-status{margin:0;color:#bfd0df;font-size:12px;line-height:1.5}
.hof-ballot-wall{padding-top:14px}
.hof-ballot-wall h3{margin:0 0 4px;color:#f5f7fa;font-size:16px}
.hof-ballot-status{margin-bottom:10px;color:#41e0cf}
.hof-ballot-candidates{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,330px),1fr));gap:10px}
.hof-ballot-candidate{padding:13px;border:1px solid rgba(106,153,180,.34);border-radius:12px;background:rgba(8,22,37,.88)}
.hof-ballot-author{color:#fff;font-weight:800;font-size:12px}
.hof-ballot-author span{margin-left:5px;color:#91aabd;font-weight:500}
.hof-ballot-text{margin:9px 0;color:#e4edf5;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.hof-ballot-candidate .post-media-live img,.hof-ballot-candidate .post-media-live video{display:block;max-width:100%;max-height:320px;border-radius:9px}
.hof-ballot-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:10px}
.hof-ballot-vote{min-height:36px;padding:7px 13px;border:1px solid #17d9c3;border-radius:9px;background:#12cbb9;color:#04232b;font-weight:900;cursor:pointer}
.hof-ballot-vote.selected{background:#0d403d;color:#8cfff0}
@media(max-width:700px){.hof-weekly-ballot{margin:10px 8px;padding:13px}.hof-ballot-candidates{grid-template-columns:1fr}}


/* ==========================================================================
   Part 22 — Commonwall visual redesign
   Principles: function first, low visual complexity, strong hierarchy,
   neutral shell, one primary accent, content carries the personality.
   ========================================================================== */

:root{
  --bg:#0A0D12;
  --panel:#10151B;
  --panel-2:#141A21;
  --panel-3:#1A212B;
  --border:#222A35;
  --border-soft:#181F28;
  --text:#F4F6F8;
  --muted:#9AA5B1;
  --dim:#697482;
  --accent:#7467F0;
  --accent-2:#8A7EFF;
  --green:#58C993;
  --red:#E26D7C;
  --gold:#D9B75D;
  --shadow:0 18px 60px rgba(0,0,0,.28);
}

html{background:var(--bg)}
body{
  background:var(--bg);
  letter-spacing:-.005em;
  color:var(--text);
}

.app{
  max-width:1580px;
  grid-template-columns:218px minmax(620px,1fr) 326px;
}

/* --- Left rail: quieter, more editorial --- */
.left-rail{
  padding:22px 14px 16px;
  background:#0B0F14;
  border-right:1px solid #171D25;
}
.brand-row{
  gap:10px;
  padding:2px 8px 28px;
}
.brand-logo{width:34px;height:34px}
.brand-name{
  font-size:17px;
  font-weight:800;
  letter-spacing:-.035em;
}
.brand-tag{
  font-size:9.5px;
  color:#77828E;
  margin-top:1px;
}
.main-nav{gap:1px}
.nav-link{
  position:relative;
  min-height:42px;
  gap:11px;
  border-radius:8px;
  padding:10px 11px;
  color:#919CA9;
  font-size:11.5px;
  font-weight:650;
}
.nav-link:hover{background:#11161D;color:#E7EBF0}
.nav-link.active{
  background:transparent;
  color:#FFF;
}
.nav-link.active::before{
  content:"";
  position:absolute;
  left:0;
  top:10px;
  bottom:10px;
  width:2px;
  border-radius:10px;
  background:var(--accent);
}
.nav-icon{
  width:20px;
  font-size:15px;
  color:#707B89;
}
.nav-link.active .nav-icon{color:#A99FFF}
.nav-badge{
  background:var(--accent);
  height:17px;
  min-width:17px;
  font-size:8px;
}
.joined-section{margin-top:28px}
.section-heading{
  padding:0 10px 10px;
  letter-spacing:.14em;
  font-size:8.5px;
  color:#5E6874;
}
.wall-link{
  border-radius:8px;
  padding:8px 10px;
  gap:9px;
}
.wall-link:hover{background:#11161D}
.wall-link.active{background:#121820;color:#FFF}
.wall-orb{
  width:25px;height:25px;
  border-radius:7px;
  background:#171E27;
  color:#A8B1BC;
  font-size:10px;
}
.wall-link-copy strong{font-size:11px;font-weight:680}
.wall-link-copy span{font-size:8.5px;color:#65707D}
.account-panel{
  background:transparent;
  border:0;
  border-top:1px solid #171D25;
  border-radius:0;
  padding:16px 5px 3px;
}
.account-panel .avatar{width:34px;height:34px}
.account-copy strong{font-size:11px}
.verified-line{font-size:8.5px;color:#7E8996}

/* --- Center stage: wall is the hero --- */
.wall-stage{
  background:var(--bg);
  border:0;
}
.wall-header{
  background:rgba(10,13,18,.94);
  border-bottom:1px solid #1B222C;
  backdrop-filter:blur(20px);
}
.wall-header-top{
  padding:25px 28px 18px;
  align-items:flex-end;
}
.eyebrow{
  color:#707B88;
  font-size:8px;
  letter-spacing:.16em;
  font-weight:800;
}
.wall-header h1{
  font-size:31px;
  letter-spacing:-.045em;
  font-weight:760;
  margin:5px 0 6px;
}
.wall-meta{
  gap:6px;
  font-size:10px;
  color:#7F8A97;
}
.wall-theme{
  max-width:660px;
  margin-top:6px;
  color:#8E99A5;
  font-size:10.5px;
  line-height:1.5;
}
.wall-actions{gap:7px}
.primary-button,.secondary-button,.control-button{
  border-radius:8px;
  font-weight:700;
}
.primary-button{
  background:var(--accent);
  box-shadow:none;
}
.primary-button:hover{filter:brightness(1.1)}
.secondary-button{
  border:1px solid #29323E;
  background:#11171E;
  color:#D3D9E0;
}
.secondary-button:hover{background:#171E27;border-color:#36404D}

/* One quiet information ribbon instead of competing KPI cards */
.status-strip{
  display:flex;
  align-items:center;
  gap:0;
  padding:0 20px;
  min-height:40px;
  border-top:1px solid #171E27;
  background:#0C1015;
  overflow-x:auto;
}
.status-item,.live-state{
  flex:0 0 auto;
  min-width:auto;
  padding:0 12px;
  height:40px;
  border-right:1px solid #1A212A;
  justify-content:flex-start;
  gap:6px;
}
.live-state{padding-left:7px}
.status-label{
  font-size:7.5px;
  letter-spacing:.09em;
  color:#66717E;
}
.status-item strong{
  font-size:9.5px;
  font-weight:680;
  color:#C7CED7;
}
.live-dot{
  width:6px;height:6px;
  background:var(--green);
  box-shadow:0 0 0 4px rgba(88,201,147,.08);
}
.live-state strong{font-size:8.5px;color:#99A5B2}
#reputationDisplay,#membershipDisplay{color:#838E9B}

.server-mode-bar{
  padding:5px 27px;
  border-color:#17231F;
  background:#0B1210;
  color:#7BB99B;
  font-size:8px;
}
.server-mode-dot{width:5px;height:5px}

/* Controls feel like transport controls, not another dashboard */
.wall-controls{
  top:151px;
  gap:4px;
  padding:8px 26px;
  background:rgba(10,14,19,.96);
  border-bottom:1px solid #171E27;
}
.control-button{
  border:0;
  background:transparent;
  padding:6px 8px;
  color:#737E8B;
  font-size:9.5px;
}
.control-button:hover{background:#121820;color:#C9D0D8}
.control-button.active{
  border:0;
  background:#141A22;
  color:#FFF;
}
.wall-position{font-size:8.5px;color:#626D79}

/* Posting system becomes a compact functional layer */
.posting-panel{
  padding:12px 26px 8px;
  background:var(--bg);
  border-bottom:0;
}
.posting-window-card{
  border:1px solid #202833!important;
  background:#0E1319!important;
  border-radius:11px!important;
  padding:13px 15px!important;
  box-shadow:none!important;
}
.posting-window-head{align-items:center!important}
.posting-window-head p{
  margin:4px 0 0!important;
  font-size:9px!important;
  color:#778390!important;
}
.posting-phase-row{margin-top:3px}
.posting-phase-row strong{
  font-size:11px!important;
  font-weight:680!important;
}
.phase-badge{
  border-radius:5px!important;
  font-size:7px!important;
  letter-spacing:.1em;
}
.window-clock span{font-size:7.5px!important}
.window-clock strong{font-size:15px!important}
.posting-capacity-grid{
  margin-top:10px!important;
  gap:0!important;
  border-top:1px solid #1B232D;
}
.posting-capacity-grid>div{
  padding:9px 12px 1px!important;
  border:0!important;
  background:transparent!important;
  border-right:1px solid #1B232D!important;
  border-radius:0!important;
}
.posting-capacity-grid>div:first-child{padding-left:0!important}
.posting-capacity-grid>div:last-child{border-right:0!important}
.posting-capacity-grid span{font-size:7.5px!important;color:#66717E!important}
.posting-capacity-grid strong{font-size:10px!important}
.posting-status-actions{margin-top:11px!important}
.posting-status-actions button{font-size:9.5px;padding:7px 9px}
.draft-preserved{
  border:0!important;
  border-left:2px solid var(--gold)!important;
  background:#12120E!important;
  border-radius:0!important;
}

/* Founder access: one restrained amber signal */
.founder-panel{
  margin:7px 26px 4px;
  padding:10px 13px;
  border-radius:9px;
  border:1px solid rgba(217,183,93,.22);
  border-left:2px solid var(--gold);
  background:#111109;
}
.founder-panel strong{font-size:10.5px}
.founder-panel p{font-size:8.5px}
.founder-actions button{font-size:9px;padding:7px 8px}

/* The feed becomes the dominant visual object */
.feed-label{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:19px 28px 9px;
  color:#5E6976;
  font-size:8px;
  letter-spacing:.12em;
}
.feed-label span:last-child{
  letter-spacing:0;
  text-transform:none;
  color:#56616E;
}
.wall-stream{
  padding-bottom:120px;
}
.wall-post{
  grid-template-columns:42px minmax(0,1fr);
  gap:13px;
  padding:24px 28px 25px;
  border-bottom:1px solid #171E27;
  background:transparent;
}
.wall-post:hover{background:#0C1015}
.wall-post.featured{border-left:0}
.avatar{
  width:40px;height:40px;
  background:#1A222D;
  font-size:10px;
  font-weight:760;
}
.avatar-me{background:#322C67}
.post-head{
  gap:6px;
  color:#77828F;
  font-size:9.5px;
}
.post-head strong{
  color:#F4F6F8;
  font-size:11.5px;
  font-weight:720;
}
.user-verified{color:#9B91F7;font-size:8.5px}
.post-handle,.post-time{color:#697481}
.slot-chip,.user-post-label{
  margin-left:auto;
  border:0;
  border-radius:5px;
  background:#121820;
  color:#687482;
  padding:3px 6px;
  font-size:7.5px;
}
.user-post-label{color:#9E94F8}
.post-text{
  max-width:700px;
  margin-top:7px;
  color:#E7EAEE;
  font-size:14px;
  line-height:1.62;
  letter-spacing:-.008em;
}
.post-media-live,.post-video-card{
  margin-top:13px;
  border-radius:11px!important;
  border-color:#232C38!important;
}
.post-actions{
  gap:20px;
  margin-top:13px;
  color:#707B88;
}
.post-action{
  font-size:9.5px;
  gap:4px;
}
.post-action:last-child{margin-left:auto;color:#606B77}
.post-action.up:hover,.vote-active-up{color:var(--green)!important}
.post-action.down:hover,.vote-active-down{color:var(--red)!important}
.post-action.comments:hover,.comment-count-highlight{color:#A69CF7!important}

/* Hall of Fame should feel archival, not flashy */
.hof-readonly-banner{
  margin:14px 28px 0!important;
  border:1px solid rgba(217,183,93,.22)!important;
  border-left:2px solid var(--gold)!important;
  background:#111109!important;
  border-radius:8px!important;
  color:#BFB58E!important;
}
.hof-card{
  border-left:0!important;
  background:transparent!important;
}
.hof-trophy{
  background:transparent!important;
  color:var(--gold)!important;
  border:1px solid rgba(217,183,93,.26)!important;
  box-shadow:none!important;
}
.hof-chip{
  background:#11161C!important;
  border:1px solid #232B35!important;
  color:#8D98A4!important;
}

/* Chat: useful but clearly secondary */
.chat-rail{
  background:#0B0F14;
  border-left:1px solid #171D25;
}
.chat-header{
  padding:22px 16px 13px;
  border-bottom:1px solid #1A212A;
}
.chat-header h2{
  font-size:15px;
  letter-spacing:-.025em;
}
.chat-info{
  padding:8px 14px;
  border-color:#171E27;
  color:#7F8A97;
  font-size:8.5px;
}
.chat-message{
  grid-template-columns:27px minmax(0,1fr);
  gap:8px;
  padding:8px 3px;
}
.chat-message .avatar{width:27px;height:27px;font-size:7.5px}
.chat-message-head strong{font-size:9px}
.chat-message-head{font-size:8.5px}
.chat-rep{font-size:7.5px;color:#8B7F58}
.chat-message p{
  margin-top:3px;
  color:#BDC5CE;
  font-size:10px;
  line-height:1.5;
}
.chat-compose{
  background:#0B1016;
  border-color:#1A212A;
}
.chat-input-row input{
  border:1px solid #232C37;
  background:#0A0E13;
  border-radius:8px;
  font-size:10px;
}
.chat-input-row input:focus{border-color:#554CA9}

/* Dialogs and cards: less chrome, more typography */
.modal,.drawer-card{
  background:#10151B;
  border:1px solid #29323D;
  border-radius:14px;
  box-shadow:0 24px 70px rgba(0,0,0,.38);
}
.modal h2{
  font-size:20px;
  font-weight:740;
  letter-spacing:-.035em;
}
.form-label{color:#808B98;font-size:9px}
.form-label input,.form-label textarea,.form-label select{
  border:1px solid #26303B;
  background:#0B1015;
  border-radius:8px;
}
.account-summary,.auth-note,.approval-rule,.privacy-note,.membership-note,
.friend-profile-body,.conversation-option-row,.report-row,.restriction-card{
  background:#0D1218!important;
  border-color:#222B36!important;
  border-radius:9px!important;
}

/* Market: a serious utility, not a crypto casino */
.market-modal{
  width:min(1020px,calc(100vw - 34px))!important;
  background:#0F141A!important;
}
.market-notice{
  border:0!important;
  border-left:2px solid #4F486F!important;
  border-radius:0!important;
  background:#0D1117!important;
  color:#8D97A3!important;
  font-size:9px!important;
}
.market-kpi-grid{
  gap:1px!important;
  border:1px solid #222A34;
  background:#222A34;
  border-radius:10px;
  overflow:hidden;
}
.market-kpi{
  border:0!important;
  border-radius:0!important;
  background:#10151B!important;
  padding:12px!important;
}
.market-kpi span{font-size:7.5px!important;color:#6D7885!important}
.market-kpi strong{
  margin-top:5px!important;
  font-size:15px!important;
  font-weight:720!important;
  letter-spacing:-.025em;
}
.market-kpi small{font-size:7.5px!important;color:#626D79!important}
.market-card{
  background:#0E1319!important;
  border-color:#222B36!important;
  border-radius:10px!important;
}
.market-card h3{font-size:13px!important;font-weight:700!important}
.market-asset,.market-listing,.market-history-row{
  background:transparent!important;
  border-color:#202833!important;
}
.market-listing:hover{background:#11171E!important}
.market-footnote{
  color:#697481!important;
  line-height:1.55;
}

/* Notifications, profiles, comments stay visually subordinate to content */
.comment-card{
  background:#0D1218;
  border-color:#202833;
  border-radius:9px;
}
.comments-modal{max-width:680px}
.notification-row,.friend-result,.friend-request-row{
  background:#0D1218!important;
  border-color:#202833!important;
}

/* Toast should feel system-level and calm */
.toast{
  background:#EEF1F4;
  color:#11161C;
  border-radius:8px;
  box-shadow:0 14px 40px rgba(0,0,0,.3);
}

/* Responsive refinement */
@media(max-width:1180px){
  .app{grid-template-columns:72px minmax(540px,1fr) 300px}
}
@media(max-width:900px){
  .app{grid-template-columns:70px minmax(0,1fr)}
  .chat-rail{display:none}
}
@media(max-width:760px){
  .wall-header-top{padding:18px 16px 13px}
  .wall-header h1{font-size:25px}
  .wall-theme{font-size:9.5px}
  .status-strip{padding:0 8px}
  .status-item,.live-state{height:36px;padding:0 8px}
  .posting-panel{padding:9px 12px 5px}
  .founder-panel{margin:7px 12px 3px}
  .feed-label{padding:16px 14px 7px}
  .wall-post{padding:19px 14px 20px}
  .post-text{font-size:13.5px}
}
@media(max-width:640px){
  .mobile-topbar{
    background:#0B0F14;
    border-color:#171D25;
  }
  .wall-header{top:53px}
  .wall-controls{
    top:170px;
    padding:7px 10px;
  }
  .status-strip{
    display:flex;
    grid-template-columns:none;
  }
  .status-item:nth-child(5),.status-item:nth-child(6){display:none}
  .posting-capacity-grid{grid-template-columns:repeat(2,1fr)!important}
  .posting-capacity-grid>div:nth-child(2){border-right:0!important}
  .posting-capacity-grid>div:nth-child(3),
  .posting-capacity-grid>div:nth-child(4){border-top:1px solid #1B232D!important}
  .wall-post{grid-template-columns:36px minmax(0,1fr);gap:10px}
  .avatar{width:36px;height:36px}
  .feed-label span:last-child{display:none}
}


/* ==========================================================================
   Part 24 — Brand refresh on the Part 22 layout
   Palette: Obsidian / Warm Bone / Signal Coral
   Logo: Open Wall + Post
   ========================================================================== */

:root{
  --bg:#0C0F10;
  --panel:#121617;
  --panel-2:#171C1D;
  --panel-3:#1D2324;
  --border:#293031;
  --border-soft:#1D2324;
  --text:#F2EFE7;
  --muted:#AAA69C;
  --dim:#716F69;
  --accent:#FF6848;
  --accent-2:#FF8A6D;
  --green:#54C792;
  --red:#DF5A68;
  --gold:#D8AF54;
  --shadow:0 18px 60px rgba(0,0,0,.31);
}

/* Global tone */
html,body{background:var(--bg);color:var(--text)}
body{background:
  radial-gradient(circle at 52% -12%,rgba(255,104,72,.055),transparent 28%),
  var(--bg);
}

/* Brand */
.brand-logo{
  width:40px!important;
  height:40px!important;
  filter:drop-shadow(0 6px 14px rgba(0,0,0,.18));
}
.brand-name{
  color:#F5F1E8!important;
  letter-spacing:-.035em!important;
}
.brand-tag{color:#837F77!important}
.left-rail,.chat-rail{background:rgba(12,15,16,.975)!important}
.left-rail{border-color:#242A2B!important}
.chat-rail{border-color:#242A2B!important}
.nav-link{color:#A8A49B!important}
.nav-link:hover{background:#181D1E!important;color:#F4F0E7!important}
.nav-link.active{
  background:#1A1F20!important;
  color:#FFF8F0!important;
}
.nav-link.active::before{background:var(--accent)!important}
.nav-link.active .nav-icon{color:#FF8065!important}
.nav-badge{background:var(--accent)!important;color:#17100D!important}
.wall-link:hover{background:#171C1D!important}
.wall-link.active{background:#1A2021!important}
.wall-orb{
  background:linear-gradient(145deg,#242B2C,#181D1E)!important;
  color:#D7D2C8!important;
}
.account-panel{
  background:#101415!important;
  border-color:#282F30!important;
}
.avatar{background:linear-gradient(145deg,#343C3D,#202627)!important}
.avatar-me{
  background:linear-gradient(145deg,#FF795C,#C84931)!important;
  color:#FFF5ED!important;
}

/* Center wall */
.wall-stage{
  background:
    radial-gradient(circle at 50% -8%,rgba(255,104,72,.06),transparent 27%),
    #0D1112!important;
}
.wall-header{
  background:rgba(13,17,18,.95)!important;
  border-color:#252C2D!important;
}
.wall-header .eyebrow{color:#858179!important}
.wall-header h1{color:#F5F1E8!important}
.wall-meta,.wall-theme{color:#AAA69C!important}
.primary-button{
  color:#17100D!important;
  background:var(--accent)!important;
  box-shadow:0 7px 24px rgba(255,104,72,.14)!important;
}
.primary-button:hover{background:#FF7659!important;filter:none!important}
.secondary-button{
  background:#151A1B!important;
  border-color:#303839!important;
  color:#DFDAD0!important;
}
.secondary-button:hover{
  background:#1B2122!important;
  border-color:#3B4445!important;
}
.status-strip{
  background:#0D1112!important;
  border-color:#202627!important;
}
.status-item,.live-state{border-color:#202627!important}
.status-label{color:#716F69!important}
.status-item strong,.live-state strong{color:#DDD8CE!important}
.live-dot{background:var(--green)!important}
#reputationDisplay,#membershipDisplay{color:#A49F95!important}
.server-mode-bar{
  background:#101714!important;
  border-color:#1B2923!important;
  color:#7BB99A!important;
}
.wall-controls{
  background:rgba(13,17,18,.98)!important;
  border-color:#202627!important;
}
.control-button{color:#8C8981!important}
.control-button:hover{background:#171C1D!important;color:#EDE8DE!important}
.control-button.active{background:#1B2122!important;color:#FFF8F0!important}
.wall-position{color:#706D66!important}

/* Posting / scarcity */
.posting-window-card{
  background:#111516!important;
  border-color:#282F30!important;
}
.posting-window-card .eyebrow,
.posting-capacity-grid span{color:#77736C!important}
.posting-phase-row strong,.posting-capacity-grid strong{color:#E5E0D6!important}
.phase-badge{
  background:#1C2223!important;
  color:#A6A198!important;
}
.posting-capacity-grid{border-color:#242B2C!important}
.posting-capacity-grid>div{border-color:#242B2C!important}
.founder-panel{
  background:#15130D!important;
  border-color:rgba(216,175,84,.24)!important;
  border-left-color:var(--gold)!important;
}
.founder-panel p{color:#9A8E6F!important}

/* Feed and people */
.feed-label{color:#706D66!important}
.feed-label span:last-child{color:#68655F!important}
.wall-post{
  border-color:#1E2425!important;
}
.wall-post:hover{background:#101415!important}
.wall-post .avatar{
  background:#202627!important;
  color:#DCD7CD!important;
}
.wall-post .avatar-me{
  background:#9C3F2D!important;
  color:#FFF0E7!important;
}
.post-head{color:#8E8A82!important}
.post-head strong,.user-name-link{color:#F1ECE2!important}
.user-verified{color:#FF8C73!important}
.post-handle,.post-time{color:#77736C!important}
.post-text{color:#E5E0D7!important}
.slot-chip,.user-post-label{
  background:#131819!important;
  border-color:#293031!important;
  color:#A6A29A!important;
}
.user-post-label{color:#FF8B72!important}
.post-actions,.post-action{color:#777C76!important}
.post-action:hover{color:#EEE9DF!important}
.post-action.up:hover,.vote-active-up{color:var(--green)!important}
.post-action.down:hover,.vote-active-down{color:var(--red)!important}
.post-action.comments:hover,.comment-count-highlight{color:#FF8A6D!important}
.mention{color:#FF8B72!important}

/* Video/media uses warm neutral framing instead of purple/blue glows */
.post-video-card{
  border-color:#303839!important;
  background:
    radial-gradient(circle at 28% 35%,rgba(255,104,72,.17),transparent 26%),
    radial-gradient(circle at 74% 64%,rgba(216,175,84,.10),transparent 30%),
    linear-gradient(145deg,#171C1D,#0C1011)!important;
}
.video-play{background:#F2EFE7!important;color:#17191A!important}
.post-media-live{border-color:#303839!important;background:#0A0D0E!important}

/* Hall of Fame */
.hof-readonly-banner{
  background:#15130D!important;
  border-color:rgba(216,175,84,.24)!important;
  color:#C3B48E!important;
}
.hof-trophy{color:var(--gold)!important;border-color:rgba(216,175,84,.3)!important}
.hof-chip{
  background:#14191A!important;
  border-color:#2A3132!important;
  color:#938E84!important;
}

/* Chat */
.chat-header{border-color:#252C2D!important}
.chat-header h2{color:#F0ECE4!important}
.chat-info{border-color:#202627!important;color:#918D85!important}
.chat-rule{color:#a0bfce!important}
.chat-rep{color:#C3A45C!important}
.chat-message p{color:#CFC9BF!important}
.chat-compose{background:#0F1314!important;border-color:#252C2D!important}
.chat-input-row input{
  background:#090C0D!important;
  border-color:#2B3334!important;
}
.chat-input-row input:focus{border-color:#B74932!important}

/* Modals */
.modal,.drawer-card{
  background:#121617!important;
  border-color:#303839!important;
}
.modal h2{color:#F3EEE5!important}
.modal p{color:#AAA69C!important}
.form-label{color:#918D85!important}
.form-label input,.form-label textarea,.form-label select{
  background:#0C1011!important;
  color:#F0EBE2!important;
  border-color:#303839!important;
}
.account-summary,.auth-note,.approval-rule,.privacy-note,.membership-note,
.friend-profile-body,.conversation-option-row,.report-row,.restriction-card,
.comment-card,.notification-row,.friend-result,.friend-request-row{
  background:#0F1314!important;
  border-color:#282F30!important;
}
.comment-card-text{color:#DCD7CE!important}

/* Marketplace: warmer, more editorial, less fintech-blue */
.market-modal{background:#101415!important}
.market-notice{
  background:#0E1213!important;
  border-left-color:var(--accent)!important;
  color:#918D85!important;
}
.market-kpi-grid{
  background:#282F30!important;
  border-color:#282F30!important;
}
.market-kpi{background:#121617!important}
.market-kpi span,.market-kpi small{color:#77736C!important}
.market-kpi strong{color:#F1ECE2!important}
.market-card{
  background:#101415!important;
  border-color:#293031!important;
}
.market-card h3{color:#EAE5DC!important}
.market-asset,.market-listing,.market-history-row{border-color:#272E2F!important}
.market-listing:hover{background:#171C1D!important}
.market-footnote{color:#7D7971!important}

/* Inputs, badges, links */
.auth-tab.active{background:#202627!important;color:#FFF4EA!important}
.backend-status{background:#0F1314!important;border-color:#292F30!important}
.profile-public-link{border-color:#2E3536!important}
.user-name-link:hover{color:#FF9279!important}
a{accent-color:var(--accent)}

/* Calm system toast */
.toast{
  background:#F2EFE7!important;
  color:#17191A!important;
}

/* Mobile retains the same Part 22 structure, recolored */
@media(max-width:640px){
  .mobile-topbar{
    background:#0C0F10!important;
    border-color:#242A2B!important;
  }
}


/* ==========================================================================
   Part 25 — Following + follower rooms
   ========================================================================== */
.user-name-link.post-author-link{
  appearance:none;border:0;background:transparent;padding:0;margin:0;
  color:inherit;font:inherit;font-weight:inherit;cursor:pointer;text-align:left;
}
.user-name-link.post-author-link:hover{color:var(--accent)!important;text-decoration:underline;text-underline-offset:2px}
.profile-social-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:10px}
.profile-social-stat{border:1px solid var(--border);background:#0F1314;border-radius:9px;padding:9px}
.profile-social-stat span,.profile-social-stat strong{display:block}
.profile-social-stat span{font-size:8px;color:var(--muted)}
.profile-social-stat strong{font-size:14px;margin-top:3px;color:var(--text)}
.profile-relationship-note{margin-top:10px;padding:8px 9px;border-left:2px solid var(--accent);font-size:9px;line-height:1.5;color:var(--muted);background:rgba(255,104,72,.04)}
.profile-activity{margin-top:13px;border-top:1px solid var(--border);padding-top:11px}
.profile-activity h3{font-size:9px;letter-spacing:.08em;color:var(--muted);margin:0 0 7px;text-transform:uppercase}
.profile-activity-row{padding:8px 0;border-bottom:1px solid var(--border-soft)}
.profile-activity-row:last-child{border-bottom:0}
.profile-activity-row strong{display:block;font-size:9px;color:var(--text)}
.profile-activity-row p{margin:3px 0 0;font-size:9px!important;line-height:1.45;color:var(--muted)!important}
.following-button{border-color:rgba(84,199,146,.4)!important;color:var(--green)!important}
.follower-room-button{border-color:rgba(255,104,72,.34)!important}
.follower-room-banner{display:flex;gap:9px;align-items:center;padding:11px 13px;border-bottom:1px solid var(--border);background:#101415}
.follower-room-banner .avatar{width:32px;height:32px}
.follower-room-banner strong,.follower-room-banner span{display:block}
.follower-room-banner strong{font-size:10px;color:var(--text)}
.follower-room-banner span{font-size:8px;color:var(--muted);margin-top:2px}
.follower-room-info{justify-content:flex-start;gap:7px}
.notification-follow-comment{border-left:2px solid var(--accent)!important}
.comment-author-link{appearance:none;border:0;background:transparent;padding:0;color:inherit;font:inherit;font-weight:inherit;cursor:pointer}
.comment-author-link:hover{color:var(--accent)}


/* Part 26: populated demo accounts / guaranteed profile links */
.chat-profile-link{
  border:0;
  background:transparent;
  color:inherit;
  padding:0;
  font:inherit;
  font-weight:700;
  cursor:pointer;
}
.chat-profile-link:hover{
  color:var(--accent);
  text-decoration:underline;
  text-underline-offset:2px;
}
.profile-activity{
  margin-top:14px;
  border-top:1px solid var(--border-soft);
  padding-top:12px;
}
.profile-activity h3{
  margin:0 0 8px;
  font-size:10px;
}
.profile-activity-row{
  padding:9px 0;
  border-bottom:1px solid var(--border-soft);
}
.profile-activity-row:last-child{border-bottom:0}
.profile-activity-row strong{
  display:block;
  font-size:8px;
  color:var(--muted);
  margin-bottom:4px;
}
.profile-activity-row p{
  margin:0;
  font-size:10px;
  line-height:1.45;
}


/* Part 27: fine-tuning */
.prototype-controls{display:none!important}
.prototype-controls.show{display:block!important}
.user-verified{
  cursor:help;
}
.comment-author-link,.hof-author-link{
  appearance:none;
  border:0;
  background:transparent;
  color:inherit;
  font:inherit;
  font-weight:700;
  padding:0;
  cursor:pointer;
}
.comment-author-link:hover,.hof-author-link:hover{
  color:var(--accent);
  text-decoration:underline;
  text-underline-offset:2px;
}
.profile-relationship-note{
  line-height:1.5;
}
#publicProfileActions{
  flex-wrap:wrap;
}
.account-tools .hidden{display:none!important}

/* Part 42: real chronological wall viewport. Live is the top edge; older history continues downward. */
.wall-stream{height:clamp(420px,58vh,760px);overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding-bottom:28px!important}
#wallStream.wall-motion-managed{overflow-anchor:none;scroll-behavior:auto!important;overflow-x:hidden}
.wall-stream::-webkit-scrollbar{width:9px}.wall-stream::-webkit-scrollbar-thumb{background:#2D3435;border-radius:10px;border:2px solid transparent;background-clip:padding-box}.wall-stream::-webkit-scrollbar-track{background:transparent}
@media(max-width:640px){.wall-stream{height:calc(100vh - 330px);min-height:380px;padding-bottom:24px!important}}

/* Part 30 retest polish */
.archive-author-link{appearance:none;border:0;background:transparent;color:inherit;font:inherit;font-weight:700;padding:0;cursor:pointer}
.archive-author-link:hover{color:var(--accent);text-decoration:underline;text-underline-offset:2px}

/* Part 30 mobile chat specificity fix: keep Chat visible while hiding secondary Join action. */
@media(max-width:760px){
  .wall-actions .mobile-chat-toggle{display:inline-flex!important}
}


/* Part 31: two-hour draw + funded marketplace */
.saved-post-tools{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:end;margin-bottom:10px}
.saved-post-meta{display:flex;gap:8px;align-items:center;padding-bottom:2px;color:var(--muted);font-size:9px}
.wallet-balance-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--border);border:1px solid var(--border);border-radius:10px;overflow:hidden;margin-top:10px}
.wallet-balance-grid>div{background:var(--panel);padding:12px}
.wallet-balance-grid span,.wallet-balance-grid strong{display:block}
.wallet-balance-grid span{font-size:8px;color:var(--muted)}
.wallet-balance-grid strong{font-size:16px;margin-top:5px}
.wallet-fund-row,.wallet-payout-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end;margin-top:10px}
.market-wallet-card{margin-bottom:12px}
.draw-badge{display:inline-flex;align-items:center;gap:5px;border:1px solid var(--border);border-radius:999px;padding:4px 7px;font-size:8px;color:var(--muted)}
@media(max-width:700px){
  .saved-post-tools{grid-template-columns:1fr}
  .wallet-balance-grid{grid-template-columns:1fr}
  .wallet-fund-row,.wallet-payout-row{grid-template-columns:1fr}
}
/* Part 36: transparency, last-seen, security and dashboard UI */
.last-seen-marker{display:flex;align-items:center;gap:10px;padding:10px 0;color:var(--accent);font-size:9px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.last-seen-marker:before,.last-seen-marker:after{content:"";height:1px;background:rgba(255,104,72,.35);flex:1}.auto-submit-label{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;color:var(--muted);font-size:9px}.audit-panel{display:grid;gap:10px}.audit-row,.referral-row,.sponsor-row{border:1px solid var(--border);background:var(--panel);border-radius:9px;padding:11px}.audit-row code{display:block;word-break:break-all;color:var(--accent-2);font-size:9px;margin-top:4px}.referral-summary-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:12px}.referral-summary-grid>div{background:var(--panel);border:1px solid var(--border);border-radius:9px;padding:10px}.referral-summary-grid span,.referral-summary-grid strong{display:block}.referral-summary-grid span{font-size:8px;color:var(--muted)}.referral-summary-grid strong{font-size:15px;margin-top:4px}.sponsor-row{display:grid;grid-template-columns:1fr auto;gap:12px}.sponsor-row small{color:var(--muted)}
@media(max-width:700px){.referral-summary-grid{grid-template-columns:1fr 1fr}.saved-post-meta{flex-wrap:wrap}.sponsor-row{grid-template-columns:1fr}}


/* Part 37: max-capacity wall simulator + interactive Hall of Fame */
.hof-interaction-note{margin-top:7px;color:var(--muted);font-size:9px}.wall-simulator-modal{max-width:980px}.simulator-controls{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.simulator-metrics{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin:14px 0}.simulator-metric{border:1px solid var(--border);background:var(--panel);border-radius:9px;padding:10px}.simulator-metric span,.simulator-metric strong{display:block}.simulator-metric span{font-size:8px;color:var(--muted);text-transform:uppercase;letter-spacing:.05em}.simulator-metric strong{font-size:14px;margin-top:4px}.simulator-actions{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}.simulator-viewport{height:430px;overflow-y:auto;border:1px solid var(--border);border-radius:12px;background:#0b0f10;scrollbar-gutter:stable}.simulator-stream{padding:0 18px 40px}.simulator-post{min-height:220px;padding:24px 0;border-bottom:1px solid var(--border-soft);display:grid;grid-template-columns:42px 1fr;gap:12px}.simulator-post .sim-avatar{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:var(--panel-3);font-size:9px;font-weight:800}.simulator-post strong{font-size:11px}.simulator-post p{margin:8px 0 12px;line-height:1.5;color:var(--text);font-size:13px}.simulator-post.video-sim{min-height:310px}.sim-video{height:120px;border:1px solid var(--border);border-radius:9px;display:grid;place-items:center;color:var(--muted);font-size:10px;background:var(--panel)}.simulator-progress{position:sticky;top:0;z-index:2;padding:7px 10px;background:rgba(12,15,16,.92);backdrop-filter:blur(7px);font-size:9px;color:var(--muted);border-bottom:1px solid var(--border)}
@media(max-width:760px){.simulator-controls,.simulator-metrics{grid-template-columns:1fr 1fr}.simulator-viewport{height:55vh}}

.hall-eligibility-status{margin-top:9px;font-size:8.5px;color:var(--muted)}.hall-eligibility-status.eligible{color:var(--green)}

/* Part 38 — attention-calibrated wall pacing */
.simulator-presets{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 2px}
.simulator-preset{white-space:nowrap}

/* Part 39 — Wall Acceptance & Stewardship */
.proposal-check{margin-top:10px;border:1px solid var(--border);background:#0b1016;border-radius:10px;padding:10px;font-size:9px;color:var(--muted);line-height:1.5}
.proposal-check.warning{border-color:#775b2b;color:#d8bd83}
.proposal-check.ok{border-color:#2d654c;color:#9ed5bd}
.proposal-discover-section{margin-top:18px;padding-top:16px;border-top:1px solid var(--border)}
.proposal-discover-head{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-bottom:10px}
.proposal-discover-head h3{margin:3px 0 0;font-size:15px}.proposal-discover-head>span{font-size:8px;color:var(--muted);max-width:250px;text-align:right}
.proposal-support-list{display:grid;gap:8px}.proposal-support-card{border:1px solid var(--border);background:#0b1016;border-radius:12px;padding:12px}
.proposal-support-card h4{margin:0 0 4px;font-size:11px}.proposal-support-card p{margin:0;color:var(--muted);font-size:9px;line-height:1.55}
.proposal-support-meta{display:flex;gap:7px;flex-wrap:wrap;margin-top:9px}.proposal-support-meta span{font-size:8px;border:1px solid var(--border);border-radius:999px;padding:4px 7px;color:var(--muted)}
.proposal-support-progress{height:5px;background:#151c24;border-radius:99px;overflow:hidden;margin-top:9px}.proposal-support-progress span{display:block;height:100%;background:currentColor;max-width:100%}
.proposal-support-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:9px}.proposal-support-actions small{color:var(--muted);font-size:8px}
.wall-lifecycle-chip{display:inline-flex;align-items:center;padding:3px 7px;border:1px solid var(--border);border-radius:999px;font-size:7px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin-left:6px}
.wall-lifecycle-chip.provisional{color:#d8bd83;border-color:#775b2b}.wall-lifecycle-chip.dormant{color:#a4aab2}
.governance-principle{border:1px solid #334454;background:#0b1118;border-radius:12px;padding:12px;font-size:9px;line-height:1.6;color:#aeb8c2}
.governance-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}.governance-card{border:1px solid var(--border);background:#0b1016;border-radius:12px;padding:12px;min-width:0}.governance-card p{color:var(--muted);font-size:9px;line-height:1.55}
.governance-row{padding:9px 0;border-bottom:1px solid var(--border)}.governance-row:last-child{border-bottom:0}.governance-row strong,.governance-row span,.governance-row small{display:block}.governance-row strong{font-size:10px}.governance-row span,.governance-row small{font-size:8px;color:var(--muted);margin-top:3px}
.governance-credential-card{margin-top:12px}.credential-apply-grid{display:grid;grid-template-columns:.8fr 1.2fr 1fr;gap:8px;margin-top:10px}
@media(max-width:760px){.governance-grid,.credential-apply-grid{grid-template-columns:1fr}.proposal-discover-head{align-items:start;flex-direction:column}.proposal-discover-head>span{text-align:left}}

/* PART 41 — EVENTS + HIGHLIGHTS */
.nav-live-dot{margin-left:auto;font-size:7px;letter-spacing:.08em;color:#73e6b2;border:1px solid rgba(115,230,178,.28);border-radius:999px;padding:2px 5px}
.event-context,.highlight-context{margin:0 20px 12px;border:1px solid var(--line);background:linear-gradient(180deg,rgba(24,29,31,.96),rgba(12,17,18,.96));border-radius:10px;padding:13px 15px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.event-context.hidden,.highlight-context.hidden{display:none}
.event-breadcrumb{font-size:8px;letter-spacing:.11em;text-transform:uppercase;color:#88949c;margin-bottom:7px}
.event-breadcrumb button{background:none;border:0;color:#9facb4;padding:0;cursor:pointer;font:inherit}
.event-scoreboard{display:flex;align-items:center;gap:12px;font-size:18px;font-weight:760;letter-spacing:-.02em}
.event-team-name{min-width:145px}.event-score{font-size:24px;color:#f3f6f7;font-variant-numeric:tabular-nums}.event-vs{font-size:9px;color:#78848d;text-transform:uppercase;letter-spacing:.12em}
.event-state-chip{display:inline-flex;align-items:center;border:1px solid rgba(115,230,178,.25);color:#81e8b8;border-radius:999px;padding:3px 7px;font-size:8px;text-transform:uppercase;letter-spacing:.1em}
.event-state-chip.final,.event-state-chip.archived{color:#aab3ba;border-color:#323a3f}.event-state-chip.scheduled{color:#e9c978;border-color:rgba(233,201,120,.25)}
.event-subline{margin-top:6px;color:#8d999f;font-size:9px}.event-context-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.highlight-context{border-color:rgba(255,111,74,.22)}.highlight-context p{margin:5px 0 0;color:#8f999f;font-size:9px}.highlight-audit-actions{display:flex;gap:7px;flex-wrap:wrap}
.events-modal{max-height:min(88vh,900px);overflow:auto}.events-filter-row{display:flex;gap:7px;align-items:center;margin:12px 0}.event-filter{border:1px solid var(--line);background:#101516;color:#9aa5aa;border-radius:999px;padding:6px 10px;font-size:9px;cursor:pointer}.event-filter.active{color:#fff;border-color:#536067;background:#20282b}.events-directory-note{margin-left:auto;color:#6f7a80;font-size:8px}
.sports-hierarchy{display:flex;gap:7px;flex-wrap:wrap;margin:8px 0 14px}.hierarchy-chip{border:1px solid #293136;background:#101516;border-radius:7px;padding:7px 9px;font-size:9px;color:#adb7bc}.hierarchy-chip strong{display:block;color:#eef2f3;font-size:10px;margin-bottom:2px}.hierarchy-chip button{border:0;background:none;color:#ff7352;font-size:8px;padding:0;cursor:pointer}
.event-directory-section{margin-top:17px}.event-directory-heading{display:flex;justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:7px;margin-bottom:8px;font-size:10px}.event-directory-heading span{color:#6f7a80;font-size:8px}.event-card-list{display:grid;gap:8px}.event-card{border:1px solid var(--line);border-radius:9px;background:#0d1213;padding:11px 12px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center}.event-card-title{display:flex;align-items:center;gap:7px}.event-card-title strong{font-size:11px}.event-card-meta{margin-top:5px;color:#7f8b91;font-size:8px}.event-card-score{font-size:16px;font-weight:750;margin-top:4px}.event-card-actions{display:flex;gap:6px;align-items:center}.event-card .live-pill{font-size:7px;color:#77e5b6;border:1px solid rgba(119,229,182,.24);border-radius:999px;padding:3px 6px;text-transform:uppercase;letter-spacing:.1em}
.highlight-origin{display:inline-flex;margin:0 0 7px;color:#ff7859;font-size:8px;background:none;border:0;padding:0;cursor:pointer}.highlight-audit-content{display:grid;gap:10px}.audit-rule-card,.audit-entry{border:1px solid var(--line);border-radius:8px;background:#0d1213;padding:11px}.audit-rule-card strong{display:block;margin-bottom:5px}.audit-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:10px}.audit-grid div{border:1px solid #293136;border-radius:6px;padding:8px}.audit-grid span{display:block;color:#768188;font-size:7px;text-transform:uppercase;letter-spacing:.08em}.audit-grid strong{font-size:12px;margin-top:3px}.audit-entry{display:flex;justify-content:space-between;gap:10px}.audit-entry small{color:#7c878d}
@media(max-width:900px){.event-context,.highlight-context{margin:0 10px 10px;align-items:flex-start;flex-direction:column}.event-context-actions{justify-content:flex-start}.event-scoreboard{font-size:14px;gap:7px}.event-team-name{min-width:0}.event-score{font-size:20px}.audit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.events-directory-note{display:none}.event-card{grid-template-columns:1fr}.event-card-actions{justify-content:flex-start}}

/* ================================================================
   Part 41.1 — quiet My Walls scrolling
   Keep the navigation/account chrome fixed and confine scrolling to
   the wall list. This also prevents long wall names from creating a
   native horizontal scrollbar in the left rail.
   ================================================================ */
@media (min-width:641px){
  .left-rail{
    overflow:hidden !important;
    min-height:0;
  }
  .joined-section{
    flex:1 1 auto;
    min-height:0;
    display:flex;
    flex-direction:column;
    overflow:hidden;
  }
  .joined-walls{
    flex:1 1 auto;
    min-height:0;
    overflow-y:auto;
    overflow-x:hidden;
    padding-right:4px;
    overscroll-behavior:contain;
    scrollbar-width:thin;
    scrollbar-color:rgba(118,128,129,.26) transparent;
  }
  .joined-walls::-webkit-scrollbar{width:5px;height:0}
  .joined-walls::-webkit-scrollbar-track{background:transparent}
  .joined-walls::-webkit-scrollbar-thumb{
    background:rgba(118,128,129,.24);
    border-radius:999px;
  }
  .joined-walls:hover::-webkit-scrollbar-thumb{background:rgba(145,155,156,.46)}
  .joined-walls::-webkit-scrollbar-corner{background:transparent}
  .wall-link{width:100%;max-width:100%;min-width:0}
  .wall-link-copy{min-width:0;overflow:hidden}
  .account-panel{flex:0 0 auto}
}

/* Part 45: public achievement badges + Hall of Fame reward credits */
.badge-strip{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}
.achievement-badge{display:inline-flex;align-items:center;gap:6px;border:1px solid rgba(246,200,95,.28);background:rgba(246,200,95,.07);color:#e8d59b;border-radius:999px;padding:6px 9px;font-size:9px;font-weight:800;letter-spacing:.01em}
.achievement-badge .badge-icon{font-size:11px;line-height:1}
.achievement-badge strong{color:#fff;font-size:8px}
.achievement-badge.founding_steward{border-color:rgba(125,104,255,.3);background:rgba(125,104,255,.08);color:#bcb3ff}
.badge-strip.compact{display:inline-flex;flex-wrap:nowrap;gap:3px;margin:0 1px}
.badge-strip.compact .achievement-badge{min-width:17px;height:17px;justify-content:center;padding:0 4px;border-radius:6px;font-size:8px}
.badge-strip.compact .achievement-badge .badge-icon{font-size:9px}
.badge-empty{color:var(--muted);font-size:9px;line-height:1.5;margin-top:8px}
.winner-reward-row{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid var(--border-soft);background:#0a1017;border-radius:10px;padding:9px 10px;margin-top:8px;font-size:9px}
.winner-reward-row span{color:#c5ced9}
.winner-reward-row strong{color:var(--gold)}
.reward-chip{border-color:rgba(89,214,162,.3)!important;color:var(--green)!important;background:rgba(89,214,162,.06)!important}


/* Part 46: adaptive Wall Chat slow mode */
.chat-slow-mode{color:#C3A45C;font-size:9px;white-space:nowrap}
.chat-message-timer{margin-left:auto;font-size:8px;font-variant-numeric:tabular-nums;color:#77746D;border:1px solid #292E2E;border-radius:999px;padding:2px 5px;line-height:1.2;white-space:nowrap}
.chat-message-timer.is-cooling{color:#C3A45C;border-color:rgba(195,164,92,.32);background:rgba(195,164,92,.055)}
.chat-cooldown-status{font-size:8.5px;color:#8E8A82;margin-top:7px;font-variant-numeric:tabular-nums;min-height:12px}
.chat-cooldown-status.is-cooling{color:#C3A45C}
#chatSendButton:disabled{opacity:.45;cursor:not-allowed;filter:saturate(.4)}

/* Part 48: transparent reach + comment recognition + verified join number */
.post-impressions{color:#8f9aaa!important;white-space:nowrap}
.comment-like-badge{display:inline-flex;align-items:center;border:1px solid var(--border);border-radius:999px;padding:2px 6px;font-size:8px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;margin-left:2px;background:rgba(255,255,255,.025);color:#aeb8c5}
.comment-like-badge.bronze{border-color:rgba(180,120,80,.5)}
.comment-like-badge.silver{border-color:rgba(180,190,205,.55)}
.comment-like-badge.gold{border-color:rgba(210,175,85,.58)}
.comment-like-badge.platinum{border-color:rgba(165,190,205,.65)}
.comment-like-badge.diamond{border-color:rgba(135,190,220,.72);box-shadow:0 0 0 1px rgba(135,190,220,.08) inset}
.kyc-join-number,.profile-join-number{border:1px solid rgba(98,87,185,.42);background:rgba(98,87,185,.09);color:#c5bfff;border-radius:999px;padding:3px 7px;font-size:8px;font-weight:800;letter-spacing:.04em;white-space:nowrap}
.profile-join-number{display:inline-flex;width:max-content;margin-top:4px}


/* Part 49: visible guest entry points + robust signup page */
.guest-auth-actions{display:flex;gap:7px;align-items:center}
.guest-auth-actions.hidden{display:none!important}
.signup-shell{min-height:100vh;display:grid;grid-template-columns:minmax(300px,1fr) minmax(360px,520px);background:#0c0f10;color:#f3eee5}
.signup-story{padding:clamp(40px,8vw,110px);display:flex;flex-direction:column;justify-content:center;border-right:1px solid var(--border)}
.signup-brand{display:flex;align-items:center;gap:12px;margin-bottom:50px}.signup-brand img{width:48px;height:48px}.signup-brand strong{font-size:20px}
.signup-story h1{font-size:clamp(34px,5vw,64px);line-height:1.02;margin:0 0 18px;max-width:780px}.signup-story p{max-width:650px;color:#aaa69c;line-height:1.7;font-size:14px}
.signup-principles{display:grid;gap:10px;margin-top:28px;max-width:650px}.signup-principle{border-top:1px solid #252b2d;padding-top:10px;font-size:12px;color:#b9b4aa}.signup-principle strong{color:#f3eee5}
.signup-panel-wrap{display:flex;align-items:center;justify-content:center;padding:28px}.signup-panel{width:100%;background:#111516;border:1px solid #2b3234;border-radius:18px;padding:26px;box-shadow:0 24px 70px rgba(0,0,0,.35)}
.signup-panel h2{font-size:26px;margin:3px 0 8px}.signup-panel .eyebrow{margin-bottom:4px}.signup-panel .form-label{margin-top:13px}.signup-panel input{width:100%;box-sizing:border-box}.signup-panel .primary-button{width:100%;margin-top:18px}.signup-login-link{margin-top:16px;text-align:center;font-size:11px;color:#8f8a82}.signup-login-link a{color:#ff674f;text-decoration:none;font-weight:800}.signup-status{min-height:18px;margin-top:10px;font-size:10px;color:#a9b4bf}.signup-status.error{color:#ff8191}.signup-status.success{color:#79dca5}
@media(max-width:860px){.signup-shell{grid-template-columns:1fr}.signup-story{display:none}.signup-panel-wrap{min-height:100vh;padding:18px}.guest-auth-actions{gap:5px}.guest-auth-actions .secondary-button{display:none}}


/* Part 52: profile picture + banner */
.avatar.has-profile-image{background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important;color:transparent!important;text-shadow:none!important}
.profile-hero{position:relative;overflow:hidden;min-height:108px}
.profile-hero.has-banner{padding-top:104px;align-items:flex-end}
.profile-hero-banner{position:absolute;inset:0 0 auto 0;height:92px;background-size:cover;background-position:center;background-repeat:no-repeat;border-bottom:1px solid var(--border);z-index:0}
.profile-hero.has-banner>.avatar,.profile-hero.has-banner>.profile-hero-copy{position:relative;z-index:1}
.profile-hero.has-banner>.avatar{box-shadow:0 0 0 4px #0d131b}
.friend-profile-body.has-banner{overflow:hidden;padding:0}
.public-profile-banner{height:128px;background-size:cover;background-position:center;background-repeat:no-repeat;border-bottom:1px solid var(--border)}
.friend-profile-body.has-banner .friend-profile-hero,.friend-profile-body.has-banner .profile-public-bio,.friend-profile-body.has-banner .profile-social-stats,.friend-profile-body.has-banner .profile-relationship-note,.friend-profile-body.has-banner .profile-public-links,.friend-profile-body.has-banner .profile-activity{margin-left:14px;margin-right:14px}
.friend-profile-body.has-banner .friend-profile-hero{padding-top:14px}
.friend-profile-body.has-banner .profile-social-stats,.friend-profile-body.has-banner .profile-public-bio,.friend-profile-body.has-banner .profile-relationship-note,.friend-profile-body.has-banner .profile-public-links,.friend-profile-body.has-banner .profile-activity{margin-bottom:14px}
.profile-media-editor{display:grid;gap:12px;margin-bottom:14px}
.profile-banner-editor,.profile-avatar-editor{border:1px solid var(--border);background:#0b1016;border-radius:12px;padding:10px}
.profile-banner-preview{height:112px;border:1px dashed #34404d;border-radius:10px;background:#11171d;background-size:cover;background-position:center;display:grid;place-items:center;color:var(--muted);font-size:9px;overflow:hidden}
.profile-avatar-editor{display:flex;align-items:center;gap:12px}
.profile-avatar-preview{width:72px!important;height:72px!important;flex:0 0 auto;font-size:16px!important}
.profile-media-label span,.profile-media-label small{display:block}.profile-media-label span{font-size:10px;font-weight:800;color:var(--text)}.profile-media-label small{font-size:8px;color:var(--muted);margin-top:2px}
.profile-media-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@media(max-width:640px){.profile-hero.has-banner{padding-top:96px}.public-profile-banner{height:104px}.profile-avatar-editor{align-items:flex-start}.profile-media-actions{display:grid;grid-template-columns:1fr 1fr}}

.comment-author-row{display:flex;align-items:center;gap:8px;margin-bottom:7px}.comment-author-row>.avatar{flex:0 0 auto}.comment-author-row>.avatar+div{min-width:0}

/* Part 53: unified low-contrast scrollbars across Commonwall surfaces. */
:is(.modal,.wide-modal,.market-modal,.events-modal,.comments-list,.friend-list,.private-messages,.mention-suggestions,.simulator-viewport,.chat-messages,.joined-walls,.wall-stream){
  scrollbar-width:thin;
  scrollbar-color:rgba(118,128,129,.28) transparent;
}
:is(.modal,.wide-modal,.market-modal,.events-modal,.comments-list,.friend-list,.private-messages,.mention-suggestions,.simulator-viewport,.chat-messages,.joined-walls,.wall-stream)::-webkit-scrollbar{
  width:6px;
  height:6px;
}
:is(.modal,.wide-modal,.market-modal,.events-modal,.comments-list,.friend-list,.private-messages,.mention-suggestions,.simulator-viewport,.chat-messages,.joined-walls,.wall-stream)::-webkit-scrollbar-track{
  background:transparent;
}
:is(.modal,.wide-modal,.market-modal,.events-modal,.comments-list,.friend-list,.private-messages,.mention-suggestions,.simulator-viewport,.chat-messages,.joined-walls,.wall-stream)::-webkit-scrollbar-thumb{
  background:rgba(118,128,129,.28);
  border-radius:999px;
  border:1px solid transparent;
  background-clip:padding-box;
}
:is(.modal,.wide-modal,.market-modal,.events-modal,.comments-list,.friend-list,.private-messages,.mention-suggestions,.simulator-viewport,.chat-messages,.joined-walls,.wall-stream):hover::-webkit-scrollbar-thumb{
  background:rgba(145,155,156,.48);
  background-clip:padding-box;
}
:is(.modal,.wide-modal,.market-modal,.events-modal,.comments-list,.friend-list,.private-messages,.mention-suggestions,.simulator-viewport,.chat-messages,.joined-walls,.wall-stream)::-webkit-scrollbar-corner{
  background:transparent;
}
.primary-button:disabled{opacity:.42;cursor:not-allowed;filter:saturate(.25);box-shadow:none}

/* Part 54 Event Wall live-archive rules */
.event-relevance-check{display:flex;align-items:center;gap:8px;margin-top:10px;padding:9px 10px;border:1px solid var(--border);border-radius:9px;background:#0b1016;color:#c7d0d7;font-size:10px}.event-relevance-check.hidden,.event-posting-note.hidden{display:none}.event-posting-note{margin-top:8px;color:#8d999f;font-size:9px;line-height:1.5}.verified-attendee-chip{display:inline-flex;align-items:center;border:1px solid rgba(89,205,150,.34);border-radius:999px;padding:2px 6px;color:#81deb0;font-size:8px;letter-spacing:.04em;text-transform:uppercase}

/* ================================================================
   Part 55 — temporary Event Walls live in Discover, not My Walls
   ================================================================ */
.discover-events-section{margin:18px 0 4px;padding:14px;border:1px solid var(--line);border-radius:10px;background:#0c1112}
.event-category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:12px}
.event-category-card{min-width:0;text-align:left;border:1px solid #283135;background:#101617;color:#c4cdcf;border-radius:8px;padding:10px 11px;cursor:pointer;transition:border-color .15s ease,background .15s ease,transform .15s ease}
.event-category-card:hover{border-color:#4a565b;background:#141b1d;transform:translateY(-1px)}
.event-category-card strong{display:block;color:#f0f3f4;font-size:10px;margin-bottom:4px}
.event-category-card span{display:block;color:#78848a;font-size:8px;line-height:1.35}
.event-category-filter-row{flex-wrap:wrap;align-items:center}
.event-category-chip{display:inline-flex;align-items:center;border:1px solid #314047;background:#11191b;color:#aebdc2;border-radius:999px;padding:3px 6px;font-size:7px;text-transform:uppercase;letter-spacing:.08em;white-space:nowrap}
@media(max-width:900px){.event-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.event-category-grid{grid-template-columns:1fr}}

/* Part 56 launch-gated Event directory */
.events-coming-soon{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 18px;border:1px solid rgba(255,255,255,.08);border-radius:12px;background:rgba(255,255,255,.025);color:#8f9aaa;font-size:11px}
.events-coming-soon strong{color:#dbe3ec;font-size:12px;letter-spacing:.04em}
.events-coming-soon span{max-width:620px;text-align:right}

/* --------------------------------------------------------------------------
   Part 64 — profile identity overhaul
   Recognition is descriptive only; no style here is wired to ranking/power.
   -------------------------------------------------------------------------- */
#profileModal .wide-modal{width:min(920px,calc(100vw - 28px));max-height:90vh}
#publicProfileModal .public-profile-modal{width:min(900px,calc(100vw - 28px));max-height:90vh}
.profile-identity-hero{padding:14px;min-height:118px}
.profile-identity-hero.has-banner{padding-top:98px}
.profile-identity-hero .profile-hero-banner{height:88px}
.profile-identity-hero .avatar{width:64px;height:64px}
.profile-identity-hero .profile-hero-copy{min-width:0;flex:1}
.profile-name-line{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.profile-name-line h3{margin:0!important}
.profile-handle-line{font-size:9px;color:var(--muted);margin-top:2px}
.profile-hero-bio{font-size:10px;color:#c7c2b9;line-height:1.45;margin-top:6px;max-width:620px}
.profile-title-chip{display:inline-flex;align-items:center;gap:5px;border:1px solid rgba(255,119,72,.35);background:rgba(255,104,72,.08);color:#f0ddd4;border-radius:999px;padding:4px 7px;font-size:9px;font-weight:800;white-space:nowrap}
.profile-title-chip small{font-size:7px;color:#b99f96;font-weight:700;text-transform:uppercase;letter-spacing:.06em}
.profile-title-mark{color:var(--accent);font-size:8px}
.profile-social-strip{display:grid;grid-template-columns:repeat(6,1fr);gap:7px;margin-top:8px}
.profile-social-strip-item{border:1px solid var(--border);background:#0c1117;border-radius:10px;padding:8px 9px;text-align:center;min-width:0}
.profile-social-strip-item strong,.profile-social-strip-item span{display:block}
.profile-social-strip-item strong{font-size:14px;color:var(--text);line-height:1.15;overflow:hidden;text-overflow:ellipsis}
.profile-social-strip-item span{font-size:7px;color:var(--muted);text-transform:uppercase;letter-spacing:.07em;margin-top:3px}
.profile-primary-grid{align-items:start}
.profile-secondary-grid{align-items:start}
.profile-card-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.profile-card-hint{display:block;color:var(--dim);font-size:8px;margin-top:2px}
.profile-pinned-card,.profile-reputation-card,.profile-activity-card,.profile-walls-card{min-height:0}
.profile-featured-post{border:1px solid var(--border-soft);background:#0a1017;border-radius:11px;padding:10px;margin-top:8px}
.profile-featured-post-head,.profile-featured-post-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--dim);font-size:8px}
.profile-featured-post-head strong{color:var(--accent);font-size:7px;letter-spacing:.08em}
.profile-featured-post p{margin:7px 0!important;font-size:10px!important;line-height:1.5!important;color:#d3cec5!important}
.profile-featured-post-foot{flex-wrap:wrap}
.profile-pin-action{margin-left:auto}
.profile-empty-compact{padding:13px 8px;color:var(--muted);font-size:9px;line-height:1.45}
.profile-walls-card{position:relative;overflow:hidden}
.profile-walls-scroll{max-height:286px;overflow-y:auto;padding-right:2px;scrollbar-width:thin;scrollbar-color:transparent transparent;mask-image:linear-gradient(to bottom,#000 0,#000 calc(100% - 18px),transparent 100%)}
.profile-walls-scroll:hover,.profile-walls-scroll:focus-within{scrollbar-color:rgba(133,139,145,.32) transparent}
.profile-walls-scroll::-webkit-scrollbar{width:4px}
.profile-walls-scroll::-webkit-scrollbar-track{background:transparent}
.profile-walls-scroll::-webkit-scrollbar-thumb{background:transparent;border-radius:999px}
.profile-walls-scroll:hover::-webkit-scrollbar-thumb{background:rgba(133,139,145,.30)}
.profile-walls-scroll.expanded{max-height:430px;mask-image:none}
.profile-walls-scroll .mini-wall-row{margin-top:6px;padding:8px 9px}
.profile-walls-scroll .mini-wall-copy strong{font-size:10px}
.profile-view-all{font-size:8px}
.profile-activity-card #profileRecentActivity{max-height:286px;overflow-y:auto;padding-right:2px;scrollbar-width:thin;scrollbar-color:transparent transparent}
.profile-activity-card #profileRecentActivity:hover{scrollbar-color:rgba(133,139,145,.28) transparent}
.profile-activity-row small{display:block;color:var(--dim);font-size:7px;margin-top:3px}
.rep-header-compact{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.rep-header-compact>span{font-size:8px;color:var(--muted);padding-top:4px}
.compact-perk-list .perk-item{padding:6px 0}
.profile-about-copy{margin:7px 0!important;font-size:10px!important;line-height:1.5!important}
.profile-muted-copy{color:var(--muted)!important}
.profile-interest-list{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.profile-interest-chip{border:1px solid rgba(255,119,72,.22);background:rgba(255,104,72,.055);color:#cfc4bc;border-radius:999px;padding:5px 7px;font-size:8px}
.profile-website{display:inline-block;margin-top:9px;color:#c8bfff;text-decoration:none;font-size:9px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.profile-website:hover{text-decoration:underline}
.profile-title-explainer{border-top:1px solid var(--border-soft);margin-top:10px;padding-top:9px}
.profile-title-explainer strong,.profile-title-explainer span,.profile-title-explainer small{display:block}
.profile-title-explainer strong{font-size:10px;color:var(--text)}
.profile-title-explainer span{font-size:8px;color:var(--muted);margin-top:3px;line-height:1.4}
.profile-title-explainer small{font-size:7px;color:var(--dim);margin-top:5px;line-height:1.4}
.profile-media-grid-inner{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:8px}
.profile-media-tile{aspect-ratio:1.45/1;border:1px solid var(--border-soft);background:#090e14 center/cover no-repeat;border-radius:9px;padding:8px;display:flex;flex-direction:column;justify-content:flex-end;min-width:0;position:relative;overflow:hidden}
.profile-media-tile::before{content:"";position:absolute;inset:0;background:linear-gradient(transparent 30%,rgba(0,0,0,.78));pointer-events:none}
.profile-media-tile span,.profile-media-tile small{position:relative;z-index:1;display:block}
.profile-media-tile span{font-size:8px;font-weight:800;color:#f3eee5}
.profile-media-tile small{font-size:7px;color:#aaa69c;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.profile-history-card{margin-top:10px}
.profile-history-card #profilePostHistory{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.profile-history-card .profile-featured-post{margin-top:0}
.profile-field-help{display:block;font-size:8px;color:var(--dim);font-weight:500;line-height:1.35;margin-top:4px}

/* Public profiles use the same identity language but keep relationship actions separate. */
.public-profile-modal .friend-profile-body{margin-top:10px;padding:0;background:#0b1016;overflow:hidden}
.public-profile-content{padding:14px}
.public-profile-identity{display:flex;align-items:center;gap:12px;margin-top:0}
.public-profile-identity .avatar{width:72px;height:72px;font-size:17px;box-shadow:0 0 0 4px #0b1016}
.friend-profile-body.has-banner .public-profile-identity{margin-top:-34px;position:relative;z-index:2}
.public-profile-identity-copy{min-width:0;flex:1}
.public-profile-identity-copy h3{font-size:18px;margin:0}
.profile-public-bio-large{font-size:10px;line-height:1.55;margin-top:10px}
.public-profile-social-strip{margin-top:12px}
.public-profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:10px;align-items:start}
.public-profile-section{border:1px solid var(--border);background:#0d131b;border-radius:12px;padding:11px;min-width:0}
.public-profile-walls-scroll{max-height:220px;overflow-y:auto;margin-top:5px;padding-right:2px;scrollbar-width:thin;scrollbar-color:transparent transparent;mask-image:linear-gradient(to bottom,#000 0,#000 calc(100% - 14px),transparent 100%)}
.public-profile-walls-scroll:hover{scrollbar-color:rgba(133,139,145,.28) transparent}
.public-profile-walls-scroll::-webkit-scrollbar{width:4px}
.public-profile-walls-scroll::-webkit-scrollbar-thumb{background:transparent;border-radius:999px}
.public-profile-walls-scroll:hover::-webkit-scrollbar-thumb{background:rgba(133,139,145,.28)}
.public-profile-wall-row{display:flex;align-items:center;gap:7px;border-bottom:1px solid var(--border-soft);padding:7px 2px}
.public-profile-wall-row:last-child{border-bottom:0}
.public-profile-wall-row strong{font-size:9px}
.profile-title-policy{font-size:7px;color:var(--dim);text-align:center;margin-top:10px;padding-top:9px;border-top:1px solid var(--border-soft)}
.public-profile-modal .friend-profile-actions{padding:0 14px 14px;margin-top:10px;flex-wrap:wrap}
.public-profile-modal .friend-profile-actions button{min-width:110px}
.public-profile-modal .public-profile-banner{height:150px}

@media(max-width:760px){
  .profile-social-strip{grid-template-columns:repeat(3,1fr)}
  .profile-primary-grid,.profile-secondary-grid,.public-profile-grid{grid-template-columns:1fr}
  .profile-history-card #profilePostHistory{grid-template-columns:1fr}
  .profile-walls-scroll,.profile-activity-card #profileRecentActivity{max-height:230px}
  .profile-media-grid-inner{grid-template-columns:repeat(2,1fr)}
  .public-profile-modal .public-profile-banner{height:118px}
  .public-profile-identity .avatar{width:62px;height:62px}
}
.public-profile-modal .friend-profile-body.has-banner .profile-public-bio{margin-left:0;margin-right:0;margin-bottom:10px}

/* --------------------------------------------------------------------------
   Part 65 — tighter profile layout + personal media gallery
   -------------------------------------------------------------------------- */
#profileModal .wide-modal{width:min(980px,calc(100vw - 28px));max-height:92vh;position:relative;padding:12px}
#profileModal .modal-head{position:absolute;z-index:8;top:16px;right:18px;width:auto;margin:0;padding:0;border:0;background:transparent}
#profileModal .modal-head>div:first-child{display:none}
#profileModal .modal-head-actions{gap:6px}
#profileModal .modal-head-actions .secondary-button{background:rgba(10,14,19,.78);backdrop-filter:blur(8px)}
.profile-identity-hero{padding:12px;min-height:104px;margin-top:0}
.profile-identity-hero.has-banner{padding-top:84px}
.profile-identity-hero .profile-hero-banner{height:78px;border-radius:11px 11px 0 0}
.profile-identity-hero .avatar{width:58px;height:58px}
.profile-hero-bio{font-size:9px;line-height:1.35;margin-top:4px;max-width:660px}
.profile-facts{margin-top:5px!important;gap:5px!important}
.profile-fact{padding:3px 6px!important;font-size:7px!important}
.profile-social-strip{gap:6px;margin-top:7px}
.profile-social-strip-item{padding:6px 7px;border-radius:8px}
.profile-social-strip-item strong{font-size:12px}
.profile-social-strip-item span{font-size:6.5px;margin-top:2px}
.profile-dashboard-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;margin-top:8px;align-items:start}
.profile-dashboard-column{display:flex;flex-direction:column;gap:8px;min-width:0}
.profile-card{padding:10px;border-radius:11px}
.profile-card-heading{gap:7px}
.profile-card-hint{font-size:7px;margin-top:1px}
.profile-featured-post{padding:8px;border-radius:9px;margin-top:6px}
.profile-featured-post p{margin:5px 0!important;font-size:9px!important;line-height:1.38!important}
.profile-featured-post-head,.profile-featured-post-foot{font-size:7px}
.profile-empty-compact{padding:8px 4px;font-size:8px;line-height:1.35}
.profile-activity-card #profileRecentActivity{max-height:190px}
.profile-activity-row{padding:7px 0!important}
.profile-activity-row p{margin:3px 0 0!important;font-size:8px!important;line-height:1.35!important}
.profile-walls-scroll{max-height:190px;mask-image:linear-gradient(to bottom,#000 0,#000 calc(100% - 12px),transparent 100%)}
.profile-walls-scroll.expanded{max-height:300px}
.profile-walls-scroll .mini-wall-row{margin-top:4px;padding:6px 7px;border-radius:8px}
.profile-walls-scroll .mini-wall-copy strong{font-size:9px}
.profile-walls-scroll .mini-wall-copy span{font-size:7px}
.rep-score-big{font-size:25px!important}
.compact-perk-list .perk-item{padding:4px 0;font-size:8px}
.profile-about-copy{margin:5px 0!important;font-size:9px!important;line-height:1.38!important}
.profile-interest-list{gap:4px;margin-top:6px}
.profile-interest-chip{padding:4px 6px;font-size:7px}
.profile-title-explainer{margin-top:7px;padding-top:6px}
.profile-title-explainer strong{font-size:9px}
.profile-title-explainer span,.profile-title-explainer small{font-size:7px;margin-top:2px}
.profile-card-actions{display:flex;align-items:center;gap:8px;white-space:nowrap}
.profile-inline-rewards{margin-top:7px;padding-top:6px;border-top:1px solid var(--border-soft)}
.profile-inline-rewards:empty{display:none}
.profile-inline-reward-title{font-size:7px;text-transform:uppercase;letter-spacing:.08em;color:var(--dim);margin-bottom:4px}
.profile-inline-rewards .winner-reward-row{padding:4px 0;font-size:7px}
.profile-history-card{margin-top:8px;padding:9px 10px}
.profile-history-card.collapsed{padding-bottom:9px}
.profile-history-card #profilePostHistory{margin-top:8px;grid-template-columns:1fr 1fr;gap:7px}
.profile-history-card.collapsed #profilePostHistory{display:none}

/* Limited-series collection preview. These cards are original placeholders; issuance is disabled. */
.profile-collection-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin-top:7px;align-items:stretch}
.profile-collection-card-mini{min-width:0}
.profile-collection-art{aspect-ratio:.72/1;border:1px solid rgba(255,255,255,.08);border-radius:8px;display:flex;align-items:center;justify-content:center;background:linear-gradient(160deg,#17110d,#090c11);position:relative;overflow:hidden}
.profile-collection-art::before{content:"";position:absolute;inset:-30%;background:radial-gradient(circle at 60% 25%,rgba(255,118,55,.28),transparent 44%);transform:rotate(18deg)}
.profile-collection-card-mini.blue .profile-collection-art::before{background:radial-gradient(circle at 60% 25%,rgba(72,132,255,.30),transparent 44%)}
.profile-collection-card-mini.gold .profile-collection-art::before{background:radial-gradient(circle at 60% 25%,rgba(226,177,73,.34),transparent 44%)}
.profile-collection-card-mini.violet .profile-collection-art::before{background:radial-gradient(circle at 60% 25%,rgba(168,98,255,.30),transparent 44%)}
.profile-collection-art span{position:relative;z-index:1;font-size:20px;color:#efe5d7;opacity:.82}
.profile-collection-card-mini.locked .profile-collection-art{filter:saturate(.55);opacity:.82}
.profile-collection-card-mini strong,.profile-collection-card-mini small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.profile-collection-card-mini strong{font-size:7px;margin-top:4px;color:#e8e2d9}
.profile-collection-card-mini small{font-size:6px;margin-top:1px;color:var(--dim)}
.profile-collection-series{border:1px dashed rgba(255,255,255,.14);border-radius:8px;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:84px;text-align:center;background:#0a0f15}
.profile-collection-series strong{font-size:13px;color:#eee8df}
.profile-collection-series span{font-size:7px;color:#aaa59c;margin-top:2px}
.profile-collection-series small{font-size:6px;color:var(--dim);margin-top:2px}
.profile-collection-note{font-size:6.5px;color:var(--dim);line-height:1.35;margin-top:6px}

/* Personal Media is intentionally separate from Wall-post media. */
.profile-media-grid-inner{grid-template-columns:repeat(3,1fr);gap:5px;margin-top:7px}
.profile-media-tile{aspect-ratio:1.45/1;border-radius:8px;padding:6px;cursor:pointer}
.profile-media-tile span{font-size:7px}
.profile-media-tile small{font-size:6.5px}
.profile-media-empty{min-height:70px;display:flex;align-items:center}
.profile-media-modal-shell{width:min(1040px,calc(100vw - 28px));max-height:92vh}
.profile-gallery-toolbar{display:flex;justify-content:space-between;gap:16px;padding:7px 2px 10px;color:var(--muted);font-size:8px;border-bottom:1px solid var(--border-soft)}
.profile-gallery-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:10px;max-height:68vh;overflow-y:auto;padding-right:3px;scrollbar-width:thin;scrollbar-color:transparent transparent}
.profile-gallery-grid:hover{scrollbar-color:rgba(133,139,145,.28) transparent}
.profile-gallery-grid::-webkit-scrollbar{width:4px}.profile-gallery-grid::-webkit-scrollbar-track{background:transparent}.profile-gallery-grid::-webkit-scrollbar-thumb{background:transparent;border-radius:999px}.profile-gallery-grid:hover::-webkit-scrollbar-thumb{background:rgba(133,139,145,.28)}
.profile-gallery-tile{aspect-ratio:1/1;min-height:150px}
.profile-gallery-tile-actions{position:absolute;z-index:3;top:6px;right:6px;display:flex;gap:4px}
.profile-gallery-mini-button{width:25px;height:25px;border:1px solid rgba(255,255,255,.14);background:rgba(8,12,17,.82);color:#e9e3da;border-radius:7px;font-size:11px;cursor:pointer;backdrop-filter:blur(7px)}
.profile-gallery-mini-button:hover,.profile-gallery-mini-button.active{border-color:rgba(255,118,72,.55);color:var(--accent);background:rgba(24,14,10,.88)}
.profile-gallery-mini-button.danger:hover{color:#ff756d;border-color:rgba(255,117,109,.5)}
.profile-gallery-empty{grid-column:1/-1;padding:36px 10px;text-align:center;color:var(--muted);font-size:10px}

/* Public profile compaction mirrors the owner profile. */
#publicProfileModal .public-profile-modal{width:min(960px,calc(100vw - 28px))}
.public-profile-content{padding:11px}
.public-profile-grid{gap:8px;margin-top:8px}
.public-profile-section{padding:9px;border-radius:10px}
.public-profile-walls-scroll{max-height:190px}
.public-profile-modal .public-profile-banner{height:126px}
.public-profile-identity .avatar{width:64px;height:64px}
.public-profile-social-strip{margin-top:8px}

@media(max-width:760px){
  #profileModal .modal-head{position:static;width:100%;margin-bottom:7px}
  #profileModal .modal-head>div:first-child{display:block}
  .profile-dashboard-grid{grid-template-columns:1fr}
  .profile-collection-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .profile-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .profile-gallery-toolbar{flex-direction:column;gap:3px}
}
.profile-media-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0;background:#090e14}
.profile-media-tile>span,.profile-media-tile>small,.profile-gallery-tile-actions{position:relative;z-index:2}
.profile-card .text-button{background:transparent!important;border:0!important;box-shadow:none!important;padding:2px 0!important;min-height:0!important;color:#86bdf2!important;font-size:7px!important}
.profile-card .text-button:hover{color:#b9dcff!important;text-decoration:underline}
.profile-media-wide{margin-top:8px}
.profile-media-wide .profile-media-grid-inner{grid-template-columns:repeat(6,minmax(0,1fr))}
.profile-media-wide .profile-media-tile{aspect-ratio:1.25/1;min-height:74px}
@media(max-width:760px){.profile-media-wide .profile-media-grid-inner{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:480px){.profile-media-wide .profile-media-grid-inner{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* --------------------------------------------------------------------------
   Part 68 — curated site appearance + public profile themes
   Site appearance is private viewing preference. Profile appearance is public
   cosmetic identity. Neither is connected to ranking, draws, votes, or access.
   -------------------------------------------------------------------------- */
html[data-site-theme="obsidian"]{
  --bg:#0C0F10;--panel:#121617;--panel-2:#171C1D;--panel-3:#1D2324;
  --border:#293031;--border-soft:#1D2324;--text:#F2EFE7;--muted:#AAA69C;--dim:#716F69;
  --site-rail:#0C0F10;--site-stage:#0D1112;--site-card:#121617;
}
html[data-site-theme="dim"]{
  --bg:#15191C;--panel:#1B2023;--panel-2:#21272A;--panel-3:#282F32;
  --border:#343C40;--border-soft:#282F32;--text:#F2F1ED;--muted:#B2B0AA;--dim:#7C7D79;
  --site-rail:#14181B;--site-stage:#171C1F;--site-card:#1B2023;
}
html[data-site-theme="lightsout"]{
  --bg:#000000;--panel:#080808;--panel-2:#0E0E0E;--panel-3:#151515;
  --border:#242424;--border-soft:#171717;--text:#F4F4F2;--muted:#A5A5A2;--dim:#6B6B69;
  --site-rail:#000000;--site-stage:#030303;--site-card:#080808;
}
html[data-site-accent="coral"]{--accent:#FF6848;--accent-2:#FF8A6D}
html[data-site-accent="violet"]{--accent:#806CFF;--accent-2:#A294FF}
html[data-site-accent="blue"]{--accent:#4C9BFF;--accent-2:#7FBAFF}
html[data-site-accent="teal"]{--accent:#36BFB0;--accent-2:#6ED7CB}
html[data-site-accent="gold"]{--accent:#D8A842;--accent-2:#EAC56E}
html[data-site-accent="rose"]{--accent:#E86987;--accent-2:#F08EA5}
html[data-site-accent="lime"]{--accent:#8CBF4A;--accent-2:#AED36F}
html[data-site-accent="ice"]{--accent:#78C7D9;--accent-2:#A4DCE7}

html[data-site-theme] body{
  background:
    radial-gradient(circle at 52% -12%,color-mix(in srgb,var(--accent) 7%,transparent),transparent 28%),
    var(--bg)!important;
}
html[data-site-theme] .left-rail,
html[data-site-theme] .chat-rail{background:var(--site-rail)!important;border-color:var(--border)!important}
html[data-site-theme] .wall-stage{background:
  radial-gradient(circle at 50% -8%,color-mix(in srgb,var(--accent) 6%,transparent),transparent 27%),
  var(--site-stage)!important}
html[data-site-theme] .wall-header{background:color-mix(in srgb,var(--site-stage) 95%,transparent)!important;border-color:var(--border)!important}
html[data-site-theme] .account-panel,
html[data-site-theme] .modal,
html[data-site-theme] .wall-post,
html[data-site-theme] .profile-card{border-color:var(--border)}
html[data-site-theme] .modal{background:var(--site-card)}
html[data-site-theme] .nav-link.active::before,
html[data-site-theme] .nav-badge,
html[data-site-theme] .primary-button{background:var(--accent)!important}
html[data-site-theme] .nav-link.active .nav-icon{color:var(--accent-2)!important}

/* Site appearance chooser */
.appearance-modal{width:min(560px,calc(100vw - 28px))}
.appearance-note{margin:0 0 14px;color:var(--muted);font-size:9px;line-height:1.45}
.appearance-section{margin-top:13px}
.appearance-option-grid{display:grid;gap:7px}
.appearance-theme-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.appearance-theme-option{border:1px solid var(--border);border-radius:10px;background:var(--panel);padding:8px;cursor:pointer;text-align:left;color:var(--text)}
.appearance-theme-option:hover,.appearance-theme-option.active{border-color:color-mix(in srgb,var(--accent) 65%,var(--border));box-shadow:0 0 0 1px color-mix(in srgb,var(--accent) 18%,transparent)}
.appearance-theme-sample{height:44px;border-radius:7px;border:1px solid rgba(255,255,255,.08);display:flex;align-items:flex-end;padding:6px;margin-bottom:6px}
.appearance-theme-sample::before{content:"";width:52%;height:6px;border-radius:999px;background:rgba(255,255,255,.32);box-shadow:0 -10px 0 rgba(255,255,255,.10)}
.appearance-theme-option strong,.appearance-theme-option small{display:block}
.appearance-theme-option strong{font-size:9px}.appearance-theme-option small{font-size:7px;color:var(--muted);margin-top:2px}
.appearance-theme-option[data-value="obsidian"] .appearance-theme-sample{background:#0C0F10}
.appearance-theme-option[data-value="dim"] .appearance-theme-sample{background:#171C1F}
.appearance-theme-option[data-value="lightsout"] .appearance-theme-sample{background:#000}
.appearance-accent-grid{display:flex;flex-wrap:wrap;gap:7px;margin-top:7px}
.appearance-accent-option{width:31px;height:31px;border-radius:999px;border:2px solid transparent;background:var(--swatch);cursor:pointer;box-shadow:0 0 0 1px rgba(255,255,255,.10)}
.appearance-accent-option:hover,.appearance-accent-option.active{border-color:#fff;box-shadow:0 0 0 2px var(--swatch),0 0 0 4px rgba(255,255,255,.13)}
.appearance-preview{margin:16px 0 12px;border:1px solid var(--border);border-radius:11px;padding:10px;background:var(--preview-bg,#0C0F10);display:flex;align-items:center;gap:9px;color:var(--preview-text,#F2EFE7)}
.appearance-preview-dot{width:28px;height:28px;border-radius:8px;background:var(--preview-accent,#FF6848)}
.appearance-preview>div{min-width:0;flex:1}.appearance-preview strong,.appearance-preview small{display:block}.appearance-preview strong{font-size:9px}.appearance-preview small{font-size:7px;opacity:.62;margin-top:2px}
.appearance-preview button{border:0;border-radius:7px;padding:7px 9px;background:var(--preview-accent,#FF6848);color:#0b0d0e;font-weight:800;font-size:7px}

/* Public profile theme variables */
[data-profile-theme="navy"]{--profile-bg:#071422;--profile-panel:#102431;--profile-panel-2:#0B1C29;--profile-border:#2D4A59;--profile-text:#F1F3EE}
[data-profile-theme="graphite"]{--profile-bg:#0B1016;--profile-panel:#10161D;--profile-panel-2:#0C1218;--profile-border:#27313A;--profile-text:#F2EFE7}
[data-profile-theme="midnight"]{--profile-bg:#07111F;--profile-panel:#0C1929;--profile-panel-2:#091522;--profile-border:#20354B;--profile-text:#F2F6FA}
[data-profile-theme="forest"]{--profile-bg:#0A1410;--profile-panel:#101D17;--profile-panel-2:#0D1813;--profile-border:#294035;--profile-text:#F1F5F0}
[data-profile-theme="burgundy"]{--profile-bg:#180B10;--profile-panel:#221018;--profile-panel-2:#1C0D14;--profile-border:#49303A;--profile-text:#F8F0F2}
[data-profile-theme="violet"]{--profile-bg:#120D1D;--profile-panel:#1A1327;--profile-panel-2:#160F21;--profile-border:#3B3150;--profile-text:#F5F1FA}
[data-profile-theme="teal"]{--profile-bg:#071516;--profile-panel:#0D2021;--profile-panel-2:#091A1B;--profile-border:#294445;--profile-text:#EEF6F5}
[data-profile-theme="warm"]{--profile-bg:#17110D;--profile-panel:#211812;--profile-panel-2:#1B140F;--profile-border:#44352A;--profile-text:#F7F0E7}
[data-profile-theme="slate"]{--profile-bg:#11151A;--profile-panel:#171D24;--profile-panel-2:#131920;--profile-border:#343D48;--profile-text:#F2F4F6}
[data-profile-accent="coral"]{--profile-accent:#FF6848;--profile-accent-2:#FF8A6D}
[data-profile-accent="babyblue"]{--profile-accent:#89CFF0;--profile-accent-2:#ADE1F8}
[data-profile-accent="violet"]{--profile-accent:#806CFF;--profile-accent-2:#A294FF}
[data-profile-accent="blue"]{--profile-accent:#4C9BFF;--profile-accent-2:#7FBAFF}
[data-profile-accent="teal"]{--profile-accent:#36BFB0;--profile-accent-2:#6ED7CB}
[data-profile-accent="gold"]{--profile-accent:#D8A842;--profile-accent-2:#EAC56E}
[data-profile-accent="rose"]{--profile-accent:#E86987;--profile-accent-2:#F08EA5}
[data-profile-accent="lime"]{--profile-accent:#8CBF4A;--profile-accent-2:#AED36F}
[data-profile-accent="ice"]{--profile-accent:#78C7D9;--profile-accent-2:#A4DCE7}

#profileModal .wide-modal[data-profile-theme],
#publicProfileModal .public-profile-modal[data-profile-theme]{
  background:var(--profile-bg)!important;color:var(--profile-text)!important;
  --accent:var(--profile-accent);--accent-2:var(--profile-accent-2);
  --panel:var(--profile-panel);--panel-2:var(--profile-panel-2);--border:var(--profile-border);--text:var(--profile-text);
}
#profileModal .wide-modal[data-profile-theme] .profile-card,
#publicProfileModal .public-profile-modal[data-profile-theme] .public-profile-section,
#publicProfileModal .public-profile-modal[data-profile-theme] .friend-profile-body{
  background:var(--profile-panel)!important;border-color:var(--profile-border)!important;
}
#profileModal .wide-modal[data-profile-theme] .profile-social-strip-item,
#publicProfileModal .public-profile-modal[data-profile-theme] .profile-social-strip-item{
  background:var(--profile-panel-2)!important;border-color:var(--profile-border)!important;
}
#profileModal .wide-modal[data-profile-theme] .profile-title-chip,
#publicProfileModal .public-profile-modal[data-profile-theme] .profile-title-chip{
  border-color:color-mix(in srgb,var(--profile-accent) 40%,transparent);
  background:color-mix(in srgb,var(--profile-accent) 10%,transparent);
}
#profileModal .wide-modal[data-profile-theme] .profile-interest-chip,
#publicProfileModal .public-profile-modal[data-profile-theme] .profile-interest-chip{
  border-color:color-mix(in srgb,var(--profile-accent) 28%,transparent);
  background:color-mix(in srgb,var(--profile-accent) 7%,transparent);
}
#profileModal .wide-modal[data-profile-theme] .profile-card .text-button,
#publicProfileModal .public-profile-modal[data-profile-theme] .profile-card .text-button{color:var(--profile-accent-2)!important}

/* Profile theme editor */
.profile-appearance-editor{margin:12px 0;padding:10px;border:1px solid var(--border);border-radius:11px;background:rgba(255,255,255,.018)}
.profile-appearance-row{margin-top:10px}
.profile-appearance-row>span{display:block;font-size:7px;color:var(--muted);text-transform:uppercase;letter-spacing:.07em;margin-bottom:6px}
.profile-theme-options{grid-template-columns:repeat(4,minmax(0,1fr))}
.profile-theme-option{border:1px solid var(--border);border-radius:8px;background:var(--panel);padding:5px;cursor:pointer;color:var(--text);font-size:7px;text-align:center}
.profile-theme-option.active{border-color:var(--accent);box-shadow:0 0 0 1px color-mix(in srgb,var(--accent) 24%,transparent)}
.profile-theme-option-swatch{height:30px;border-radius:6px;margin-bottom:4px;background:var(--swatch)}
.profile-appearance-preview{margin-top:10px;border:1px solid var(--profile-border,#27313A);background:var(--profile-bg,#0B1016);border-radius:9px;padding:8px;display:flex;align-items:center;gap:8px;color:var(--profile-text,#F2EFE7)}
.profile-appearance-preview-avatar{width:30px;height:30px;border-radius:50%;background:var(--profile-accent,#FF6848);box-shadow:0 0 0 3px color-mix(in srgb,var(--profile-accent,#FF6848) 16%,transparent)}
.profile-appearance-preview>div strong,.profile-appearance-preview>div small{display:block}.profile-appearance-preview>div strong{font-size:8px}.profile-appearance-preview>div small{font-size:6.5px;opacity:.6;margin-top:2px}

@media(max-width:560px){
  .appearance-theme-grid{grid-template-columns:1fr}
  .profile-theme-options{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* --------------------------------------------------------------------------
   Part 69 — compact profile editor + full-bleed banner editor
   Keeps profile customization rich without turning Edit Profile into a long page.
   -------------------------------------------------------------------------- */
#editProfileModal{padding:14px}
#editProfileModal>.modal{
  width:min(790px,calc(100vw - 28px));
  max-height:min(88vh,820px);
  padding:0;
  overflow-y:auto;
  overflow-x:hidden;
  border-radius:15px;
  scrollbar-width:thin;
  scrollbar-color:rgba(130,139,145,.22) transparent;
}
#editProfileModal>.modal::-webkit-scrollbar{width:5px}
#editProfileModal>.modal::-webkit-scrollbar-track{background:transparent}
#editProfileModal>.modal::-webkit-scrollbar-thumb{background:rgba(130,139,145,.22);border-radius:999px}
#editProfileModal>.modal:hover::-webkit-scrollbar-thumb{background:rgba(145,155,160,.38)}
#editProfileModal .modal-head{
  position:sticky;top:0;z-index:20;
  margin:0;padding:12px 14px 10px;
  background:color-mix(in srgb,var(--panel) 91%,transparent);
  border-bottom:1px solid var(--border-soft);
  backdrop-filter:blur(12px);
}
#editProfileModal .modal-head h2{font-size:17px;margin-top:2px}
#editProfileModal .profile-media-editor{display:block;margin:0 0 2px;position:relative}
#editProfileModal .profile-banner-editor{
  position:relative;
  padding:0;
  border:0;
  border-radius:0;
  background:#080d12;
  overflow:visible;
}
#editProfileModal .profile-banner-preview{
  width:100%;
  height:150px;
  border:0;
  border-radius:0;
  background:#0a1017;
  background-size:cover;
  background-position:center;
  box-shadow:inset 0 -44px 42px -34px rgba(0,0,0,.85);
}
#editProfileModal .profile-banner-editor>.profile-media-label{
  position:absolute;left:12px;top:10px;z-index:4;
  max-width:58%;padding:6px 8px;border-radius:8px;
  background:rgba(5,8,12,.68);backdrop-filter:blur(8px);
}
#editProfileModal .profile-banner-editor>.profile-media-label span{font-size:9px}
#editProfileModal .profile-banner-editor>.profile-media-label small{font-size:6.5px;color:#b9b5ae}
#editProfileModal .profile-banner-editor>.profile-media-actions{
  position:absolute;right:12px;bottom:10px;z-index:5;margin:0;
  padding:4px;border-radius:9px;background:rgba(5,8,12,.62);backdrop-filter:blur(8px)
}
#editProfileModal .profile-banner-editor>.profile-media-actions .secondary-button{
  min-height:28px;padding:6px 9px;background:rgba(16,22,29,.82)
}
#editProfileModal .profile-avatar-editor{
  width:max-content;max-width:calc(100% - 28px);
  margin:-32px 14px 0;
  position:relative;z-index:8;
  padding:7px 9px 7px 7px;
  border-radius:12px;
  background:rgba(11,16,22,.94);
  box-shadow:0 8px 28px rgba(0,0,0,.26);
}
#editProfileModal .profile-avatar-preview{width:58px!important;height:58px!important;font-size:13px!important}
#editProfileModal .profile-avatar-editor .profile-media-label span{font-size:9px}
#editProfileModal .profile-avatar-editor .profile-media-label small{font-size:6.5px}
#editProfileModal .profile-avatar-editor .profile-media-actions{margin-top:5px}
#editProfileModal .profile-avatar-editor .secondary-button{min-height:27px;padding:5px 8px}

.edit-profile-content-grid{
  display:grid;grid-template-columns:minmax(0,1.08fr) minmax(260px,.92fr);
  gap:12px;padding:4px 14px 0;align-items:start;
}
.edit-profile-column{min-width:0}
#editProfileModal .form-label{margin-top:8px;font-size:8px}
#editProfileModal .form-label input,
#editProfileModal .form-label textarea,
#editProfileModal .form-label select{margin-top:4px;padding:8px 9px;border-radius:8px;font-size:9px}
#editProfileModal .form-label textarea{min-height:62px;max-height:96px}
#editProfileModal .profile-field-help{font-size:6.5px;margin-top:3px;line-height:1.25}
#editProfileModal .profile-appearance-editor{margin:8px 0 0;padding:8px;border-radius:9px}
#editProfileModal .profile-appearance-row{margin-top:7px}
#editProfileModal .profile-appearance-row>span{font-size:6px;margin-bottom:4px}
#editProfileModal .profile-theme-options{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
#editProfileModal .profile-theme-option{padding:4px;border-radius:6px;font-size:6px}
#editProfileModal .profile-theme-option-swatch{height:17px;border-radius:4px;margin-bottom:2px}
#editProfileModal .appearance-accent-grid{gap:5px;margin-top:4px}
#editProfileModal .appearance-accent-option{width:24px;height:24px}
#editProfileModal .profile-appearance-preview{margin-top:7px;padding:6px;border-radius:7px;gap:6px}
#editProfileModal .profile-appearance-preview-avatar{width:23px;height:23px}
#editProfileModal .profile-appearance-preview>div strong{font-size:7px}
#editProfileModal .profile-appearance-preview>div small{font-size:5.8px;margin-top:1px}
#editProfileModal .profile-toggle-row{margin-top:9px;padding:7px 8px;font-size:8px;border-radius:8px}
#editProfileModal .privacy-note{margin-top:7px;padding:7px 8px;font-size:7px;line-height:1.3;border-radius:8px}
.edit-profile-savebar{
  position:sticky;bottom:0;z-index:18;
  padding:10px 14px 12px;margin-top:8px;
  border-top:1px solid var(--border-soft);
  background:color-mix(in srgb,var(--panel) 92%,transparent);
  backdrop-filter:blur(12px);
}
#editProfileModal .edit-profile-savebar .primary-button{min-height:34px}

@media(max-width:700px){
  #editProfileModal{padding:0}
  #editProfileModal>.modal{width:100vw;max-height:100vh;height:100vh;border-radius:0}
  #editProfileModal .profile-banner-preview{height:132px}
  #editProfileModal .profile-banner-editor>.profile-media-label{max-width:70%}
  #editProfileModal .profile-avatar-editor{margin-left:10px;margin-right:10px}
  .edit-profile-content-grid{grid-template-columns:1fr;padding:4px 10px 0;gap:0}
  #editProfileModal .profile-theme-options{grid-template-columns:repeat(4,minmax(0,1fr))}
  .edit-profile-savebar{padding:9px 10px 10px}
}
@media(max-width:440px){
  #editProfileModal .profile-banner-preview{height:118px}
  #editProfileModal .profile-banner-editor>.profile-media-label small{display:none}
  #editProfileModal .profile-banner-editor>.profile-media-actions{right:8px;bottom:8px}
  #editProfileModal .profile-avatar-editor{width:calc(100% - 20px);box-sizing:border-box}
  #editProfileModal .profile-theme-options{grid-template-columns:repeat(2,minmax(0,1fr))}
}


/* ==========================================================================
   Part 70 — multi-Wall posting clarity
   The Wall is the broadest scarce stage, never a platform-wide posting gate.
   ========================================================================== */
.other-wall-posting{
  margin-top:11px;
  padding-top:11px;
  border-top:1px solid var(--border-soft);
}
.other-wall-posting.hidden{display:none!important}
.other-wall-posting-copy{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.other-wall-posting-copy .eyebrow{margin-right:2px}
.other-wall-posting-copy strong{font-size:10px;color:var(--text)}
.other-wall-posting-copy p{margin:0;color:var(--muted);font-size:8.5px;line-height:1.45;flex:1 1 360px}
.other-wall-posting-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:9px}
.other-wall-post-card{
  appearance:none;
  width:100%;
  display:grid;
  grid-template-columns:25px minmax(0,1fr) auto;
  align-items:center;
  gap:8px;
  min-width:0;
  border:1px solid var(--border-soft);
  border-radius:9px;
  background:rgba(255,255,255,.018);
  color:var(--text);
  padding:7px 8px;
  text-align:left;
  cursor:pointer;
}
.other-wall-post-card:hover{border-color:color-mix(in srgb,var(--accent) 38%,var(--border));background:color-mix(in srgb,var(--accent) 6%,var(--panel))}
.other-wall-post-orb{width:25px;height:25px;border-radius:7px;display:grid;place-items:center;background:var(--panel-3);font-size:8px;font-weight:800;color:var(--muted)}
.other-wall-post-copy{min-width:0}
.other-wall-post-copy strong,.other-wall-post-copy span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.other-wall-post-copy strong{font-size:9.5px}
.other-wall-post-state{font-size:7.5px;color:var(--dim);margin-top:1px}
.other-wall-post-state.open{color:var(--green)}
.other-wall-post-state.prepare{color:var(--muted)}
.other-wall-post-state.posted{color:var(--gold)}
.other-wall-post-action{font-size:7.5px;font-weight:800;color:var(--accent);white-space:nowrap}
.composer-other-walls{margin-top:8px;border:1px solid var(--border-soft);border-radius:10px;background:rgba(255,255,255,.015);padding:9px}
.composer-other-walls.hidden{display:none!important}
.composer-other-walls-copy{display:flex;gap:6px;align-items:baseline;flex-wrap:wrap;margin-bottom:7px}
.composer-other-walls-copy strong{font-size:9px}
.composer-other-walls-copy span{font-size:8px;color:var(--muted)}
.composer-other-walls-list{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none}
.composer-other-walls-list::-webkit-scrollbar{display:none}
.other-wall-post-card.compact{min-width:190px;grid-template-columns:22px minmax(0,1fr);padding:6px 7px}
.other-wall-post-card.compact .other-wall-post-orb{width:22px;height:22px}
.other-wall-post-card.compact .other-wall-post-action{display:none}
@media(max-width:700px){
  .other-wall-posting-list{grid-template-columns:1fr}
  .other-wall-posting-copy{display:block}
  .other-wall-posting-copy p{margin-top:4px}
}

/* Part 73: a small favorites rail, with the full directory behind Wall Categories. */
.left-rail .favorites-section{flex:0 1 auto;min-height:0;margin-top:18px;overflow:hidden}
.favorite-wall-list{display:flex;flex-direction:column;gap:3px;min-height:0;max-height:255px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:rgba(128,139,144,.20) transparent}
.favorite-wall-list:hover,.favorite-wall-list:focus-within{scrollbar-color:rgba(128,139,144,.5) transparent}
.favorite-wall-list::-webkit-scrollbar{width:4px}
.favorite-wall-list::-webkit-scrollbar-track{background:transparent}
.favorite-wall-list::-webkit-scrollbar-thumb{background:rgba(128,139,144,.2);border-radius:8px}
.favorite-wall-list:hover::-webkit-scrollbar-thumb,.favorite-wall-list:focus-within::-webkit-scrollbar-thumb{background:rgba(128,139,144,.5)}
.favorite-wall-row{display:flex;align-items:center;gap:3px;flex:0 0 39px;min-width:0;border-radius:9px}
.favorite-wall-row .wall-link{min-width:0;min-height:39px;flex:1;gap:9px;padding:7px 8px}
.favorite-wall-row .wall-orb{width:23px;height:23px;flex:0 0 23px;font-size:9px}
.favorite-wall-row .wall-link-copy strong{font-size:11px;line-height:1.3}
.favorite-star{background:transparent;color:var(--dim,#899396);border:0;border-radius:7px;min-width:28px;min-height:32px;cursor:pointer;font-size:16px;flex:none}
.favorite-star[aria-pressed="true"]{color:var(--accent,#FF6848)}
.favorite-star:disabled{cursor:default;opacity:.7}
.favorite-star:hover:not(:disabled){background:rgba(160,170,172,.1)}
.favorite-star:focus-visible,.favorite-wall-list:focus-visible{outline:2px solid var(--accent,#FF6848);outline-offset:2px}
.favorite-wall-hint{font-size:10px;line-height:1.5;color:var(--dim,#899396);margin:8px 8px 0;max-width:175px}
.left-rail .account-panel{margin-top:auto;padding-top:12px;flex:none}
.drawer-category-button{width:100%;margin:10px 0}
.drawer-card{max-height:calc(100dvh - 28px);overflow:auto}
.mobile-route-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0 0 10px}
.mobile-route-link{min-height:44px;text-align:left;justify-content:flex-start;padding:10px 12px}
.drawer-section-label{margin:14px 4px 8px;color:var(--muted,#aab4b8);font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
#mobileWallList{max-height:min(330px,60dvh)}
#wallDrawer .wall-link-copy{display:block}
.wall-directory-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:10px 0}
.wall-directory-tools label{font-size:12px;color:var(--muted,#aab4b8)}
.wall-directory-tools select{background:var(--surface,#111819);color:var(--text,#f2efe7);border:1px solid var(--border,#293136);padding:8px 30px 8px 10px;border-radius:8px;font:inherit;font-size:12px;min-height:36px}
#wallDirectoryCount{margin-left:auto;color:var(--dim,#899396);font-size:11px}
.wall-directory-note{font-size:11px;color:var(--dim,#899396);line-height:1.5;margin:0 0 14px}
.categorized-wall-list{display:block}
.wall-category-group{border:1px solid var(--border,#293136);border-radius:12px;margin-bottom:8px;background:rgba(12,17,21,.35);overflow:hidden}
.wall-category-group>summary{display:flex;align-items:center;gap:10px;cursor:pointer;list-style:none;min-height:48px;padding:12px 14px;font-size:13px;font-weight:650}
.wall-category-group>summary::-webkit-details-marker{display:none}
.wall-category-group>summary:after{content:'+';margin-left:4px;color:var(--dim,#899396)}
.wall-category-group[open]>summary:after{content:'−'}
.wall-category-group .category-count{margin-left:auto;color:var(--dim,#899396);font-size:11px;font-weight:400}
.wall-category-cards,.favorite-directory-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:0 10px 10px}
.favorite-directory-cards{padding:0}
.wall-category-cards .discover-card,.favorite-directory-cards .discover-card{min-width:0}
.discover-card-actions{flex-wrap:wrap;justify-content:flex-end;gap:5px}
.discover-card-head h3{overflow-wrap:anywhere}
.wall-favorite-toggle[aria-pressed="true"]{border-color:var(--accent,#FF6848);color:var(--accent,#FF6848)}
.favorite-directory-empty{grid-column:1/-1}
@media (min-width:641px) and (max-width:1100px){.favorite-wall-hint{display:none}.favorite-wall-row{justify-content:center}.favorite-wall-row>.favorite-star{display:none}}
@media (max-width:700px){.wall-category-cards,.favorite-directory-cards{grid-template-columns:1fr}.wall-directory-tools{gap:8px}.wall-category-group>summary{font-size:12px}}

/* -------------------------------------------------------------------------- */
/* Part 86: Market tab — Option 3 Trading Floor                               */
/* -------------------------------------------------------------------------- */
.market-trading-floor-modal{
  width:min(1380px,96vw)!important;
  max-width:1380px!important;
  max-height:94vh!important;
  padding:18px 18px 20px!important;
  background:radial-gradient(circle at top right,#102a46 0%,#08111d 28%,#06101a 62%,#050c15 100%)!important;
  border:1px solid rgba(67,130,206,.28)!important;
  box-shadow:0 22px 64px rgba(0,0,0,.45)!important;
}
.market-modal-head{
  align-items:flex-start!important;
  margin-bottom:10px!important;
}
.market-trading-floor-modal .modal-head h2{font-size:20px!important;letter-spacing:-.03em}
.market-trading-floor-modal .eyebrow{color:#5ecbff!important;letter-spacing:.24em!important}
.market-trading-hero{
  display:grid;
  grid-template-columns:1.15fr .95fr;
  gap:14px;
  margin:6px 0 12px;
  border:1px solid rgba(70,118,171,.26);
  background:linear-gradient(135deg,rgba(6,18,30,.92),rgba(11,33,56,.86));
  border-radius:20px;
  overflow:hidden;
}
.market-trading-copy{padding:22px 24px 20px;display:flex;flex-direction:column;justify-content:center}
.market-option-pill{
  width:max-content;
  padding:8px 14px;
  border-radius:999px;
  border:1px solid rgba(68,170,255,.5);
  background:rgba(12,42,78,.7);
  color:#7bd4ff;
  font-size:12px;
  font-weight:700;
}
.market-trading-copy h2{margin:12px 0 8px;font-size:42px;line-height:1;letter-spacing:-.05em;color:#fff}
.market-hero-subtitle{margin:0;max-width:720px;color:#9eb7c9;font-size:14px;line-height:1.6}
.market-hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.market-hero-actions .primary-button{box-shadow:0 8px 28px rgba(35,145,255,.28)}
.market-hero-art{
  position:relative;
  min-height:220px;
  padding:18px 22px;
  background:
    radial-gradient(circle at 72% 50%, rgba(71,173,255,.28), transparent 28%),
    radial-gradient(circle at 74% 53%, rgba(11,26,46,.08), transparent 15%),
    linear-gradient(180deg,rgba(5,22,37,.92),rgba(7,17,28,.96));
}
.market-hero-skyline{
  position:absolute;left:0;right:0;bottom:54px;height:88px;
  background:
    linear-gradient(to right, transparent 0 10%, rgba(71,180,255,.3) 10% 10.6%, transparent 10.6% 14%, rgba(71,180,255,.22) 14% 15%, transparent 15% 19%, rgba(71,180,255,.38) 19% 19.7%, transparent 19.7% 25%, rgba(71,180,255,.26) 25% 26.2%, transparent 26.2% 29%, rgba(71,180,255,.35) 29% 29.6%, transparent 29.6% 35%, rgba(71,180,255,.24) 35% 35.6%, transparent 35.6% 41%, rgba(71,180,255,.42) 41% 42.2%, transparent 42.2% 49%, rgba(71,180,255,.3) 49% 50.4%, transparent 50.4% 56%, rgba(71,180,255,.27) 56% 57.3%, transparent 57.3% 63%, rgba(71,180,255,.34) 63% 64.5%, transparent 64.5% 68%, rgba(71,180,255,.2) 68% 69.1%, transparent 69.1% 75%, rgba(71,180,255,.3) 75% 76%, transparent 76% 80%, rgba(71,180,255,.25) 80% 80.8%, transparent 80.8% 100%);
  opacity:.95;
}
.market-hero-tagline{position:absolute;right:24px;top:28px;color:#47cfff;font-size:32px;line-height:1.08;font-weight:800;letter-spacing:.22em;text-align:right;text-transform:uppercase}
.market-hero-script{position:absolute;right:26px;bottom:22px;color:#d8ad58;font-size:28px;line-height:1.08;font-style:italic;text-align:right;opacity:.92}
.market-notice{
  border:1px solid rgba(80,113,152,.24)!important;
  background:rgba(7,14,23,.72)!important;
  color:#9fb0c0!important;
  padding:12px 14px!important;
  font-size:11px!important;
  line-height:1.55!important;
  border-radius:15px!important;
}
.market-trading-strip{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin-top:12px;
}
.market-ticker-card{
  position:relative;
  padding:18px 18px 16px;
  border-radius:16px;
  border:1px solid rgba(85,125,160,.25);
  background:linear-gradient(180deg,rgba(8,20,33,.92),rgba(7,15,25,.95));
  overflow:hidden;
}
.market-ticker-card::after{content:"";position:absolute;right:-12px;bottom:-16px;width:120px;height:72px;border-radius:999px;background:radial-gradient(circle, rgba(57,170,255,.25), transparent 68%);opacity:.9}
.market-ticker-founder::after{background:radial-gradient(circle, rgba(218,176,83,.22), transparent 68%)}
.market-ticker-credit::after{background:radial-gradient(circle, rgba(143,108,255,.2), transparent 68%)}
.market-ticker-demand::after{background:radial-gradient(circle, rgba(42,230,188,.2), transparent 68%)}
.market-ticker-label{display:block;font-size:12px;color:#d5e7f2;font-weight:700}
.market-ticker-card strong{display:block;margin-top:8px;font-size:28px;letter-spacing:-.04em;color:#fff}
.market-ticker-card small{display:block;margin-top:6px;color:#7f96ab;font-size:11px}
.market-trading-grid{
  display:grid;
  grid-template-columns:1.45fr .78fr .82fr;
  gap:12px;
  margin-top:12px;
  align-items:start;
}
.market-trading-floor-modal .market-card{
  background:linear-gradient(180deg,rgba(8,18,29,.92),rgba(7,14,23,.97))!important;
  border:1px solid rgba(79,113,144,.22)!important;
  border-radius:18px!important;
  padding:14px!important;
  box-shadow:0 10px 24px rgba(0,0,0,.16);
}
.market-trading-floor-modal .market-card h3{color:#f7fbff!important;font-size:17px!important;letter-spacing:-.03em}
.market-card-head{margin-bottom:10px}
.market-card-head .eyebrow{color:#53cbff!important}
.market-chart-badges{display:flex;gap:8px}
.market-chart-badges span,.market-book-step,.market-live-pill{
  padding:5px 8px;border-radius:999px;border:1px solid rgba(78,121,159,.24);background:rgba(16,34,52,.72);color:#a7c9da;font-size:10px;font-weight:700
}
.market-chart-price-row{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;margin-bottom:10px}
.market-chart-price{font-size:40px;line-height:1;letter-spacing:-.05em;color:#fff}
.market-chart-change{font-size:12px;color:#57d6ff;font-weight:700;text-align:right}
.market-price-chart{
  height:208px;
  display:grid;
  grid-template-columns:repeat(12,minmax(0,1fr));
  gap:8px;
  align-items:end;
  padding:16px 12px 12px;
  border-radius:16px;
  border:1px solid rgba(70,111,148,.16);
  background:
    linear-gradient(180deg, rgba(21,42,66,.16), rgba(4,12,20,.16)),
    linear-gradient(to top, rgba(255,255,255,.06) 1px, transparent 1px) 0 0/100% 25%,
    linear-gradient(to right, rgba(255,255,255,.04) 1px, transparent 1px) 0 0/12.5% 100%;
}
.market-price-bar-group{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;gap:8px}
.market-price-bar{width:100%;max-width:28px;border-radius:12px 12px 4px 4px;background:linear-gradient(180deg,#2be2ff,#177cf7);box-shadow:0 10px 20px rgba(31,143,255,.28)}
.market-price-bar-group span{font-size:9px;color:#6f8798;text-align:center;line-height:1.1}
.market-chart-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:12px}
.market-chart-stats div{padding:10px 11px;border-radius:13px;background:rgba(11,22,35,.72);border:1px solid rgba(80,112,150,.14)}
.market-chart-stats span{display:block;font-size:10px;color:#8ea8bb}
.market-chart-stats strong{display:block;font-size:16px;color:#fff;margin-top:3px}
.market-history.market-history-compact{margin-top:10px;display:grid;gap:6px}
.market-history.market-history-compact .market-history-row{
  grid-template-columns:1fr 1fr 1fr 1fr;
  border:none;
  padding:10px 12px;
  border-radius:12px;
  background:rgba(9,18,29,.7);
}
.market-history-row span{font-size:10px;color:#91a7b8}
.market-history-row strong{color:#fff}
.market-orderbook-head,.market-book-row{display:grid;grid-template-columns:1fr .8fr 1fr;gap:10px}
.market-orderbook-head{padding:0 4px 8px;color:#7390a8;font-size:10px;text-transform:uppercase;letter-spacing:.08em}
.market-orderbook-body{display:grid;gap:8px}
.market-book-side{display:grid;gap:4px}
.market-book-row{padding:10px 12px;border-radius:12px;background:rgba(11,21,33,.74);font-size:11px;color:#cad7e2;border:1px solid rgba(78,109,142,.14)}
.market-book-row.ask{background:linear-gradient(90deg,rgba(82,28,46,.46),rgba(11,21,33,.74))}
.market-book-row.bid{background:linear-gradient(90deg,rgba(10,55,60,.58),rgba(11,21,33,.74))}
.market-book-row span:last-child{text-align:right}
.market-book-spread{padding:8px 6px;font-size:11px;color:#7fd5ff;text-align:center}
.market-book-empty{padding:12px;border-radius:12px;background:rgba(9,18,29,.72);font-size:11px;color:#89a0b1}
.market-trade-sidebar{display:grid;gap:12px}
.trading-side-card{padding:14px!important}
.market-wallet-total{font-size:34px;font-weight:800;letter-spacing:-.05em;color:#fff;margin:2px 0 12px}
.market-trading-floor-modal .wallet-balance-grid{grid-template-columns:1fr 1fr!important;gap:8px!important}
.market-trading-floor-modal .wallet-balance-grid > div{padding:10px 11px;border-radius:12px;background:rgba(10,20,32,.72);border:1px solid rgba(78,109,141,.15)}
.market-trading-floor-modal .wallet-balance-grid span{display:block;font-size:10px;color:#8ea3b4}
.market-trading-floor-modal .wallet-balance-grid strong{display:block;font-size:16px;color:#fff;margin-top:4px}
.market-trading-floor-modal .wallet-fund-row,.market-trading-floor-modal .wallet-payout-row{display:grid;gap:10px;margin-top:10px}
.market-buy-sell-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-bottom:12px}
.market-buy-sell-tabs button{padding:10px;border-radius:12px;border:1px solid rgba(81,114,145,.2);background:rgba(11,22,35,.66);color:#b8cad7;font-weight:700}
.market-buy-sell-tabs .active{background:linear-gradient(180deg,#1f98ff,#1670f5);color:#06111f;border-color:transparent}
.market-trade-estimate{display:block;margin-top:10px;color:#7f95a8;font-size:10px;line-height:1.5}
.trading-market-assets{grid-template-columns:1fr!important;gap:8px!important}
.trading-market-assets .market-asset{padding:11px 12px!important;border-radius:12px!important;background:rgba(10,20,32,.72)!important}
.market-lower-grid{display:grid;grid-template-columns:1.65fr .86fr .92fr;gap:12px;margin-top:12px;align-items:start}
.market-open-listings-card{min-width:0}
.trading-market-listings{display:grid;gap:8px!important}
.trading-listing-row{
  grid-template-columns:1.35fr .42fr .8fr .7fr .8fr auto!important;
  gap:10px!important;
  border-radius:14px!important;
  padding:12px 14px!important;
  background:rgba(9,17,28,.72)!important;
}
.trading-listing-row strong{font-size:12px!important;color:#fff}
.trading-listing-row span,.trading-listing-row small{font-size:10px!important;color:#90a5b7!important}
.market-recent-trades{display:grid;gap:6px}
.market-trade-row{display:grid;grid-template-columns:.8fr 1fr .7fr 1fr;gap:10px;padding:10px 12px;border-radius:12px;background:rgba(9,18,29,.72);font-size:11px;color:#cbd8e3;border:1px solid rgba(80,110,142,.12)}
.market-trade-row span:nth-child(2){color:#53d7ff;font-weight:700}
.market-talk-feed{display:grid;gap:8px}
.market-talk-item{padding:12px;border-radius:14px;background:rgba(10,20,32,.74);border:1px solid rgba(79,110,142,.12)}
.market-talk-item strong{display:block;color:#fff;font-size:12px}
.market-talk-item p{margin:6px 0 7px;color:#99adbd;font-size:11px;line-height:1.55}
.market-talk-item small{color:#72889a;font-size:10px}
.market-trading-floor-modal .market-footnote{margin-top:12px!important;color:#7f94a6!important;font-size:10px!important;line-height:1.65!important}

@media(max-width:1200px){
  .market-trading-grid{grid-template-columns:1fr}
  .market-lower-grid{grid-template-columns:1fr}
  .market-trading-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:900px){
  .market-trading-floor-modal{width:min(100vw,100vw)!important;max-height:100vh!important;border-radius:0!important}
  .market-trading-hero{grid-template-columns:1fr}
  .market-hero-art{min-height:170px}
  .market-trading-copy h2{font-size:34px}
  .market-hero-tagline{font-size:22px}
  .market-hero-script{font-size:20px}
  .market-trading-strip{grid-template-columns:1fr}
  .market-chart-stats{grid-template-columns:1fr}
  .market-trading-floor-modal .wallet-balance-grid{grid-template-columns:1fr!important}
  .trading-listing-row{grid-template-columns:1fr 1fr!important}
  .trading-listing-row button{grid-column:1/-1}
  .market-trade-row{grid-template-columns:1fr 1fr}
}


/* Part 87: compact chat rail using Chat Option 3 language */
.app{grid-template-columns:260px minmax(0,1fr) 260px!important;}
.chat-rail{display:grid;grid-template-rows:auto 1fr;min-width:260px;width:260px;background:linear-gradient(180deg,#06101a 0%,#07111c 38%,#050d16 100%)!important;border-left:1px solid #15314a!important;box-shadow:inset 1px 0 0 rgba(22,224,198,.06);}
.chat-header.chat-header-stacked{padding:14px 12px 10px!important;border-bottom:1px solid rgba(40,118,163,.34)!important;background:radial-gradient(circle at 18% 0%,rgba(20,224,198,.12),transparent 42%),linear-gradient(180deg,rgba(7,16,27,.98),rgba(6,14,23,.95));}
.chat-header-top{align-items:flex-start!important;}
.chat-header-top > div:first-child{min-width:0;}
.chat-header h2{margin:5px 0 0!important;font-size:13px!important;line-height:1.1;font-weight:840;letter-spacing:-.025em;color:#f5fbff;}
.chat-subtitle{margin:4px 0 0;font-size:9px;line-height:1.45;color:#86a9bb;max-width:21ch;}
.cloutreign-chat-eyebrow{font-size:8px!important;letter-spacing:.16em;text-transform:uppercase;color:#8fd0e2!important;}
.cloutreign-chat-spark{font-size:11px!important;color:#19e1d0!important;text-shadow:0 0 10px rgba(20,224,198,.5);}
.cloutreign-chat-name{color:#1ee1d4!important;}
.chat-header-actions .icon-button{color:#7ea3b4;background:rgba(8,18,28,.62);border:1px solid rgba(50,104,139,.32);padding:4px 7px;font-size:13px;}
.chat-mode-switch{grid-template-columns:1fr 1fr!important;gap:6px!important;padding:4px!important;border:1px solid rgba(45,102,138,.38)!important;background:#08131f!important;border-radius:12px!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.03);}
.chat-mode-button{position:relative;padding:8px 6px!important;font-size:9px!important;color:#6f8da0!important;border-radius:9px!important;letter-spacing:.02em;display:flex;align-items:center;justify-content:center;gap:5px;}
.chat-mode-button.active{background:linear-gradient(180deg,rgba(21,163,255,.28),rgba(12,104,185,.16))!important;color:#f4fbff!important;border:1px solid rgba(34,161,255,.38);box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 0 0 1px rgba(20,224,198,.04);}
.chat-unread-badge{background:#14e0c6!important;color:#042130!important;min-width:15px;height:15px;font-size:8px;font-weight:800;}
.chat-pane.active{display:grid;grid-template-rows:auto 1fr auto;min-height:0;height:100%;}
#privateChatPane.active{grid-template-rows:auto auto 1fr;}
.chat-info,.friend-toolbar{padding:8px 10px!important;border-bottom:1px solid rgba(41,96,128,.28)!important;background:rgba(7,17,28,.76)!important;color:#80a0b3!important;font-size:8px!important;gap:6px;flex-wrap:wrap;}
.chat-info strong{color:#ecfbff;}
.chat-slow-mode,.chat-rule{display:inline-flex;align-items:center;padding:3px 7px;border-radius:999px;border:1px solid rgba(44,101,131,.36);background:rgba(10,24,38,.88);color:#a0bfce;}
.chat-messages,.private-messages,.friend-list{padding:8px!important;background:radial-gradient(circle at 100% 0%,rgba(13,88,149,.10),transparent 30%);}
.chat-message{grid-template-columns:30px minmax(0,1fr)!important;gap:8px!important;padding:0 0 10px!important;align-items:flex-start;}
.chat-message .avatar{width:30px!important;height:30px!important;border:1px solid rgba(52,121,159,.45);background:linear-gradient(145deg,#0e2232,#0b1622)!important;box-shadow:0 0 0 2px rgba(10,18,27,.9);}
.chat-message > div:last-child{min-width:0;padding:8px 10px;border-radius:14px;border:1px solid rgba(43,103,137,.34);background:linear-gradient(180deg,rgba(7,18,29,.98),rgba(9,20,33,.92));box-shadow:inset 0 1px 0 rgba(255,255,255,.02);}
.chat-message-head{gap:5px!important;flex-wrap:wrap;color:#84a7b7!important;font-size:8px!important;}
.chat-message-head strong,.chat-profile-link{font-size:9px!important;color:#f5fbff!important;font-weight:760;}
.chat-profile-link:hover{color:#14e0c6!important;}
.chat-rep{font-size:7px!important;color:#14e0c6!important;letter-spacing:.04em;}
.chat-message-timer{margin-left:auto;background:rgba(11,23,34,.92)!important;border:1px solid rgba(40,101,133,.28)!important;color:#89afbe!important;}
.chat-message p{margin:4px 0 0!important;color:#cee5f0!important;font-size:10px!important;line-height:1.5!important;word-break:break-word;}
.hof-readonly-note{padding:14px 12px!important;text-align:left!important;border:1px solid rgba(219,176,80,.28);border-radius:13px;background:linear-gradient(180deg,rgba(40,30,7,.34),rgba(16,14,10,.60));color:#d6d9dd!important;line-height:1.55;}
.chat-compose,.private-compose,.private-compose-rich{padding:9px!important;border-top:1px solid rgba(41,96,128,.28)!important;background:linear-gradient(180deg,rgba(6,13,21,.96),rgba(7,15,24,.98))!important;}
.chat-user-row{display:flex;align-items:center;gap:7px;margin-bottom:7px;color:#84a7b7;font-size:9px;}
.small-avatar{width:24px!important;height:24px!important;font-size:8px!important;}
.chat-input-row{gap:6px!important;align-items:center;}
.chat-input-row input,.private-compose input{background:#091521!important;border:1px solid rgba(45,106,141,.38)!important;border-radius:12px!important;color:#eff8fc!important;font-size:10px!important;padding:10px 11px!important;}
.chat-input-row input::placeholder,.private-compose input::placeholder{color:#6f8ca0;}
.chat-input-row input:focus,.private-compose input:focus{border-color:#16e0c6!important;box-shadow:0 0 0 3px rgba(20,224,198,.08);}
.chat-compose .primary-button.small,.private-compose .primary-button.small{border-radius:12px!important;padding:9px 11px!important;background:linear-gradient(135deg,#19dff0,#0e86ff)!important;box-shadow:0 8px 18px rgba(5,108,199,.26);font-size:10px!important;}
.chat-cooldown-status,.chat-footnote{font-size:8px;color:#67879a;line-height:1.45;margin-top:6px;}
.friend-toolbar{display:flex;flex-direction:column;align-items:stretch!important;gap:8px;}
.friend-toolbar strong{font-size:10px!important;color:#f4fbff;}
.friend-toolbar span{font-size:8px!important;color:#7ea0b4!important;}
.friend-toolbar-actions{display:grid!important;grid-template-columns:1fr 1fr 1fr;gap:6px!important;}
.friend-toolbar-actions .secondary-button.small{padding:7px 6px!important;font-size:8px!important;border-radius:10px!important;border-color:rgba(45,106,141,.38)!important;background:#0a1623!important;color:#b1d0dd!important;}
.private-chat-subtabs{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid rgba(41,96,128,.28)!important;background:#07111c!important;}
.private-subtab{padding:8px 10px;border:0;background:transparent;color:#6e8fa2;font-size:9px;font-weight:800;cursor:pointer;}
.private-subtab.active{color:#fff;background:linear-gradient(180deg,rgba(21,163,255,.18),rgba(12,104,185,.06));box-shadow:inset 0 -1px 0 #14e0c6;}
.private-chat-layout{grid-template-columns:1fr!important;grid-template-rows:minmax(124px,180px) 1fr;height:100%!important;}
.friend-list{border-right:0!important;border-bottom:1px solid rgba(41,96,128,.28)!important;display:flex;flex-direction:column;gap:7px;overflow-y:auto;}
.friend-list-item{padding:8px!important;border:1px solid rgba(40,99,131,.26);border-radius:12px!important;background:rgba(8,18,29,.78)!important;color:#c1d9e4!important;}
.friend-list-item:hover,.friend-list-item.active{background:linear-gradient(180deg,rgba(18,48,74,.92),rgba(10,24,38,.96))!important;border-color:rgba(34,161,255,.34)!important;color:#fff!important;}
.friend-list-item .avatar{width:30px!important;height:30px!important;font-size:8px!important;border:1px solid rgba(52,121,159,.45);background:linear-gradient(145deg,#0e2232,#0b1622)!important;}
.friend-list-copy strong{font-size:9px!important;color:#eef8fc;}
.friend-list-copy span{font-size:8px!important;color:#78a0b2!important;}
.friend-unread{background:#14e0c6!important;color:#052231!important;}
.private-conversation{display:grid;grid-template-rows:auto 1fr auto;min-height:0;background:rgba(5,14,23,.55);}
.private-conversation-head{padding:9px 10px!important;border-bottom:1px solid rgba(41,96,128,.28)!important;background:rgba(7,17,28,.74)!important;}
.private-conversation-head strong{font-size:10px!important;color:#f4fbff;}
.private-conversation-head span{font-size:8px!important;color:#80a0b3!important;}
.private-messages{display:flex;flex-direction:column;gap:8px;}
.private-bubble{max-width:100%!important;padding:9px 10px!important;border-radius:14px!important;background:linear-gradient(180deg,rgba(8,20,31,.98),rgba(10,23,37,.92))!important;border:1px solid rgba(40,99,131,.26)!important;color:#d4e7f0!important;font-size:9px!important;line-height:1.5!important;}
.private-bubble.me{align-self:flex-end!important;background:linear-gradient(135deg,#0d6fe0,#16b8ff)!important;border-color:rgba(61,189,255,.36)!important;color:#fff!important;box-shadow:0 10px 24px rgba(8,98,191,.18);}
.private-bubble small{font-size:7px!important;color:#89a9bb!important;margin-top:5px!important;}
.attachment-button{border:1px solid rgba(45,106,141,.38)!important;background:#0b1622!important;color:#d3edf8!important;border-radius:11px!important;width:32px;height:32px;display:grid;place-items:center;padding:0!important;}
.follower-room-info{justify-content:flex-start!important;}
.follower-room-banner{display:flex;gap:8px;align-items:center;padding:10px;border-bottom:1px solid rgba(41,96,128,.28)!important;background:rgba(7,17,28,.76)!important;}
.follower-room-banner .avatar{width:34px;height:34px;border:1px solid rgba(52,121,159,.45);background:linear-gradient(145deg,#0e2232,#0b1622)!important;}
.follower-room-banner strong{display:block;font-size:10px;color:#f5fbff;}
.follower-room-banner span{display:block;font-size:8px;color:#7ea0b4;margin-top:3px;}
@media(max-width:760px){
  .chat-rail{width:min(92vw,320px)!important;min-width:0!important;}
}

/* Part 88: Hide only the duplicate outer title panel on Hall of Fame. */
.wall-header.hof-duplicate-header-hidden{display:none!important}
.wall-header.hof-duplicate-header-hidden ~ .wall-controls{top:0!important}

/* Part 94: text-only conversations — no bubble/card around individual replies. */
.chat-rail .chat-message > div:last-child,
.chat-rail .private-bubble,
.chat-rail .private-bubble.me {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 2px 0 !important;
}
.chat-rail .chat-message {padding-bottom: 12px !important;}
.chat-rail .chat-message p {margin-top: 3px !important;}
.chat-rail .private-bubble.me {color: #9de7ff !important;}
.chat-rail .private-bubble {max-width: 100% !important;}

/* Part 99 — Profile Studio */
.public-profile-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-flow:row dense;align-items:start}
.public-profile-grid > .public-profile-section[data-studio-span="2"]{grid-column:span 2}
.public-profile-grid > .public-profile-section[data-studio-height="compact"]{max-height:180px;overflow:auto}
.public-profile-grid > .public-profile-section[data-studio-height="tall"]{min-height:330px}
.public-profile-grid > .studio-hidden{display:none!important}
.profile-studio-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:12px 0 2px}
.profile-studio-toolbar button{font-size:10px;padding:8px 12px;border-color:#267a92!important;background:#0b2940!important;color:#cbf7ff!important}
.profile-studio-toolbar #profileStudioHelp{color:#91bdcc;font-size:9px;line-height:1.45}
.profile-studio-editing .public-profile-section.studio-editable{border-color:rgba(20,224,198,.5)!important;background:linear-gradient(165deg,#0b2232,#101c30)!important;outline:1px dashed rgba(20,224,198,.24);outline-offset:2px}
.profile-studio-editing .public-profile-section.studio-dragging{opacity:.45}
.studio-tools{display:flex;align-items:center;gap:5px;flex-wrap:wrap;border-bottom:1px solid #245067;margin:-3px 0 9px;padding:0 0 8px}
.studio-handle{cursor:grab;user-select:none;touch-action:none;font-size:19px;line-height:1;color:#22e0d0;padding:1px 5px}
.studio-tools-title{flex:1;min-width:60px;color:#a5d7e2;font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.07em}
.studio-tools button{background:#112b3e;border:1px solid #2a607a;border-radius:7px;color:#daf8ff;cursor:pointer;padding:3px 7px;font-size:11px}
.studio-tools button:hover{border-color:#23ddcc;background:#19425a}
@media(max-width:760px){.public-profile-grid{grid-template-columns:1fr!important}.public-profile-grid > .public-profile-section[data-studio-span="2"]{grid-column:span 1}.studio-tools-title{min-width:40px}}

/* Part 100 free-form responsive profile grid */
.public-profile-grid{display:grid!important;grid-template-columns:repeat(12,minmax(0,1fr))!important;grid-auto-flow:row dense!important;align-items:start!important}
.public-profile-grid>.public-profile-section{grid-column:span 6;position:relative;min-width:0}
.profile-studio-editing .public-profile-section{overflow:visible;min-height:140px}
.studio-resize-grip{position:absolute;bottom:2px;right:2px;width:30px;height:30px;display:grid;place-items:center;background:#11506a!important;border:1px solid #20e0cf!important;border-radius:8px;color:#dfffff;cursor:nwse-resize;touch-action:none;z-index:5;font-size:17px}
@media(max-width:760px){.public-profile-grid>.public-profile-section{grid-column:span 12!important;width:100%}}

/* Part 102 — accessible, always-visible Profile Studio controls */
#publicProfileModal .profile-studio-toolbar{position:sticky;top:0;z-index:120;display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:11px 15px;margin:0!important;background:linear-gradient(100deg,#07243a,#092a42)!important;border-block:1px solid #2688a6;box-shadow:0 8px 20px #0009}
#publicProfileModal #profileStudioToggle{background:#0875c9!important;color:white!important;border-color:#36b7df!important;font-weight:800;font-size:12px;padding:10px 16px}
#publicProfileModal .profile-studio-editing .studio-tools{position:relative;z-index:2;background:#0d3048;border-radius:8px;padding:8px;margin-bottom:10px}
#publicProfileModal .profile-studio-editing .studio-resize-grip{width:42px;height:42px;bottom:4px;right:4px;box-shadow:0 0 0 3px #06151f,0 0 17px #18d9e6!important;font-size:24px!important}
#publicProfileModal .studio-tools .studio-handle{font-size:22px!important;cursor:grab!important;touch-action:none;padding:1px 7px;border-radius:7px;background:#12607d;color:#eaffff}
#publicProfileModal .profile-studio-editing .public-profile-section{outline:2px dashed rgba(24,218,230,.58)!important;outline-offset:1px;}
#publicProfileModal .profile-studio-editing .public-profile-grid{grid-auto-flow:row!important}
@media(max-width:760px){#publicProfileModal .profile-studio-toolbar{top:0;padding:9px}#publicProfileModal .profile-studio-toolbar #profileStudioHelp{width:100%}}

/* Part 103 — owner moves/resizes profile cards directly without entering edit mode */
#publicProfileModal .profile-studio-direct-toolbar{position:sticky;top:0;z-index:121;padding:6px 12px!important;gap:12px!important;background:#072035!important;border-color:#1d526b!important}
#publicProfileModal .profile-studio-direct-toolbar #profileStudioHelp{flex:1;font-size:10px!important;color:#a3cada!important}
#publicProfileModal .profile-studio-direct-toolbar #profileStudioReset{font-size:9px!important;padding:6px 9px!important}
#publicProfileModal .profile-studio-direct .public-profile-section.studio-editable{outline:none!important;border-color:rgba(47,98,122,.45)!important;background:inherit!important}
#publicProfileModal .profile-studio-direct .studio-tools{display:flex;align-items:center;gap:4px;padding:3px 5px!important;margin:-2px -2px 8px!important;background:rgba(10,36,53,.8)!important;border:1px solid rgba(30,114,142,.4);border-radius:7px;}
#publicProfileModal .profile-studio-direct .studio-tools .studio-handle{font-size:17px;line-height:1;min-width:28px;min-height:27px;display:grid;place-items:center;cursor:grab;touch-action:none;background:#0d3852;border-radius:6px;color:#42e5de}
#publicProfileModal .profile-studio-direct .studio-tools .studio-tools-title{font-size:9px;color:#b8d5e2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1}
#publicProfileModal .profile-studio-direct .studio-tools button{font-size:11px;cursor:pointer;min-width:25px;min-height:25px}
#publicProfileModal .profile-studio-direct .studio-resize-grip{width:29px!important;height:29px!important;bottom:2px!important;right:2px!important;box-shadow:0 0 0 1px #06151f!important;font-size:17px!important;opacity:.85}
#publicProfileModal .profile-studio-direct .studio-resize-grip:hover{opacity:1;box-shadow:0 0 12px #18d9e6!important}
#publicProfileModal .profile-studio-direct .public-profile-section{min-height:140px}
@media(max-width:760px){#publicProfileModal .profile-studio-direct-toolbar{position:sticky;top:0}#publicProfileModal .profile-studio-direct .studio-tools{flex-wrap:wrap}}

/* Part 104: DIRECT, ALWAYS-ON own-profile card controls. */
#profileModal .profile-custom-grid{display:grid!important;grid-template-columns:repeat(12,minmax(0,1fr))!important;gap:13px!important;align-items:start!important;grid-auto-flow:row dense!important}
#profileModal .profile-custom-grid>.profile-card{grid-column:span 6;position:relative;min-width:0;box-sizing:border-box;min-height:120px;overflow:auto}
#profileModal .profile-custom-grid>.profile-card.profile-media-card,#profileModal .profile-custom-grid>.profile-card.profile-history-card{grid-column:span 12}
#profileModal .profile-custom-grid .own-grid-tools{display:flex;align-items:center;gap:5px;margin:-3px -3px 10px;padding:5px 7px;background:#082a3b;border:1px solid #20718b;border-radius:8px;position:relative;z-index:8}
#profileModal .own-drag-handle{font-size:22px;font-weight:800;color:#43eff0;cursor:grab;touch-action:none;user-select:none;padding:1px 7px;border-radius:6px;background:#0a4760}
#profileModal .own-drag-handle:active{cursor:grabbing}
#profileModal .own-grid-title{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:9px;font-weight:750;color:#b6dce5}
#profileModal .own-grid-tools button{border-radius:6px;border:1px solid #35667a;background:#113647;color:#eafcff;padding:4px 9px;cursor:pointer}
#profileModal .own-resize-handle{position:absolute;right:3px;bottom:3px;z-index:15;width:37px;height:37px;border:1px solid #2cf2e1;border-radius:9px;background:#095b75;color:white;font-size:24px;cursor:nwse-resize;touch-action:none;box-shadow:0 0 12px #20c8df77}
#profileModal .own-drag-active{opacity:.50}
#profileModal .profile-custom-grid>.profile-card{scrollbar-width:thin}
@media(max-width:760px){#profileModal .profile-custom-grid>.profile-card{grid-column:span 12!important;height:auto!important;min-height:120px}#profileModal .own-grid-title{font-size:8px}}

#editProfileModal .signup-name-grid{grid-template-columns:repeat(2,minmax(0,1fr));min-width:0}
#editProfileModal .signup-name-grid>.form-label{min-width:0;max-width:100%}
#editProfileModal #profileFirstNameInput,#editProfileModal #profileLastNameInput{box-sizing:border-box;width:100%;max-width:100%;background-color:#090d13!important;color:#f2efe7!important}
#editProfileModal #profileFirstNameInput:focus,#editProfileModal #profileLastNameInput:focus{background-color:#090d13!important;outline:2px solid #d7ad58;outline-offset:0;box-shadow:none!important}
#editProfileModal #profileFirstNameInput::selection,#editProfileModal #profileLastNameInput::selection{background:#d7ad58;color:#101317}
@media(max-width:560px){#editProfileModal .signup-name-grid{grid-template-columns:1fr}}

/* Discovery source labels and compact rail recommendations. */
.discovery-source{display:inline-flex;align-items:center;margin:0 0 7px;padding:3px 8px;border:1px solid rgba(20,224,198,.22);border-radius:999px;background:rgba(10,39,51,.55);color:#83cbd1;font-size:8px;font-weight:800;letter-spacing:.04em}
.feed-wall-link .wall-link-copy>span{color:#9fb8c5}
.discovery-more-wrap{display:flex;justify-content:center;padding:12px}
.discovery-more-wrap.hidden{display:none!important}
.chat-rail{grid-template-rows:minmax(120px,34vh) auto minmax(160px,1fr)!important}
.dashboard-recommendations{min-height:0;max-height:34vh;overflow-y:auto;padding:8px 10px 10px;border-top:1px solid rgba(41,96,128,.34);background:rgba(5,13,22,.82);scrollbar-width:thin}
.recommendation-section+.recommendation-section{margin-top:10px;padding-top:8px;border-top:1px solid rgba(41,96,128,.22)}
.recommendation-section h3{margin:0 0 6px;color:#cce8f1;font-size:9px;letter-spacing:.04em}
.recommendation-list{display:grid;gap:4px}
.recommendation-row{display:flex;align-items:center;gap:5px;min-width:0;padding:4px;border:1px solid rgba(41,96,128,.18);border-radius:9px;background:rgba(8,20,31,.72)}
.recommendation-person,.recommendation-wall{display:flex;align-items:center;gap:7px;flex:1;min-width:0;border:0;background:none;color:#e8f5fa;text-align:left;cursor:pointer;padding:1px}
.recommendation-person>span:last-child,.recommendation-wall>span:last-child{display:grid;min-width:0}
.recommendation-person strong,.recommendation-wall strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:8px}
.recommendation-person small,.recommendation-wall small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#7797a8;font-size:7px;margin-top:2px}
.recommendation-avatar{display:grid;place-items:center;flex:0 0 25px;width:25px;height:25px;border:1px solid rgba(52,121,159,.42);border-radius:50%;background:linear-gradient(145deg,#0e3345,#0b1725);color:#bdefff;font-size:8px;font-weight:850}
.recommendation-action{flex:0 0 auto;padding:5px 7px;border:1px solid rgba(20,224,198,.28);border-radius:7px;background:#0b2534;color:#a7ede6;font-size:7px;font-weight:800;cursor:pointer}
.recommendation-action:hover{border-color:#14e0c6;color:white}
.recommendation-empty{padding:5px;color:#7797a8;font-size:8px}
.chat-minimize-button{min-width:27px;font-size:15px!important;font-weight:800}
.chat-rail.chat-collapsed{grid-template-rows:minmax(120px,1fr) auto!important;align-content:stretch}
.chat-rail.chat-collapsed>.chat-pane,.chat-rail.chat-collapsed .chat-mode-switch{display:none!important}
.chat-rail.chat-collapsed .dashboard-recommendations{max-height:calc(100vh - 72px);min-height:120px}
.app.discovery-mode .wall-controls{opacity:.72}
/* Discovery collects published posts; submission belongs to the source Wall. */
.app.discovery-mode #postingPanel,
.app.discovery-mode #founderPanel{display:none!important}
@media(max-width:760px){
 .chat-rail{grid-template-rows:minmax(100px,31vh) auto minmax(140px,1fr)!important}
 .dashboard-recommendations{max-height:31vh}
 .chat-rail.chat-collapsed{height:auto!important;bottom:auto!important;max-height:75vh}
 .chat-rail.chat-collapsed .dashboard-recommendations{max-height:calc(75vh - 72px)}
}

/* Profile avatars render as images so failed loads can fall back to initials. */
.avatar-image{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}
.avatar.has-profile-image{overflow:hidden}
.own-profile-avatar-trigger{position:relative;cursor:pointer;outline:none}
.server-mode-bar{display:none!important}
.own-profile-avatar-trigger::after{content:"Change";position:absolute;inset:0;display:grid;place-items:center;border-radius:inherit;background:rgba(4,12,18,.72);color:#fff;font-size:11px;font-weight:800;opacity:0;transition:opacity .16s ease}
.own-profile-avatar-trigger:hover::after,.own-profile-avatar-trigger:focus-visible::after{opacity:1}
.own-profile-avatar-trigger:focus-visible{box-shadow:0 0 0 3px #52d6d0,0 0 0 6px rgba(6,14,20,.9)}
.discovery-popular-comment{margin:22px 24px;padding:18px 22px;border:1px solid rgba(35,175,168,.48);border-left:3px solid #18cdbd;border-radius:14px;background:linear-gradient(135deg,rgba(16,49,64,.96),rgba(10,29,47,.98));box-shadow:0 10px 26px rgba(0,0,0,.16)}
.discovery-popular-comment-label{display:flex;align-items:center;justify-content:space-between;gap:14px;color:#5be1d4;font-size:11px;font-weight:800;letter-spacing:.09em;text-transform:uppercase}
.discovery-popular-comment-label span+span{color:#9fc5d4;letter-spacing:.02em;text-transform:none}
.discovery-popular-comment-author{display:flex;align-items:center;gap:9px;margin-top:14px;color:#edf6fa;font-size:13px}
.discovery-popular-comment-author>span:last-child{color:#83a5b7;font-size:11px}
.discovery-comment-avatar{display:grid;width:30px;height:30px;place-items:center;border-radius:50%;background:#325f7a;color:#fff;font-size:10px;font-weight:800}
.discovery-popular-comment-body{margin:12px 0;color:#e5eff5;font-size:15px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}
.discovery-popular-comment-context{color:#8eacbd;font-size:11px;line-height:1.5}
.discovery-popular-comment-open{display:inline-flex;align-items:center;margin-top:13px;padding:7px 12px;border:1px solid #286273;border-radius:8px;background:#102e40;color:#55ded3;font-family:inherit;font-size:11px;font-weight:700;cursor:pointer}
.discovery-popular-comment-open:hover{border-color:#45d4ca;background:#123b4b}
@media(max-width:600px){.discovery-popular-comment{margin:14px 10px;padding:14px}.discovery-popular-comment-body{font-size:14px}.discovery-popular-comment-context{font-size:10px}}
