:root{font-family:Arial,sans-serif;color:#173d55;background:#f4f7f9;line-height:1.6}*{box-sizing:border-box}body{margin:0}header{padding:20px 5%;background:#102d40;color:#fff;display:flex;justify-content:space-between;gap:24px;align-items:center;flex-wrap:wrap}header>a{font-size:24px;font-weight:700}small{display:block;font-size:10px;letter-spacing:2px}a{color:inherit}header a{text-decoration:none}nav{display:flex;gap:20px;align-items:center;flex-wrap:wrap}main{max-width:1120px;padding:45px 24px 70px;margin:auto}h1{font-size:clamp(28px,4vw,44px);margin:8px 0 20px;line-height:1.2}h2{line-height:1.3}.eyebrow{letter-spacing:3px;font-size:12px;color:#967454}form.panel,.panel,.content-card{background:white;padding:25px;border:1px solid #bdd2df;border-radius:14px;margin:20px 0}form.panel{max-width:620px}label{display:block;margin:16px 0;font-weight:600}input,select,textarea{display:block;width:100%;padding:12px;border:1px solid #9cb7c7;border-radius:7px;font:inherit;margin-top:6px}input[type=checkbox]{display:inline;width:auto}textarea{min-height:100px}button,.button{display:inline-block;border:0;border-radius:8px;background:#173d55;color:white;padding:12px 18px;font:inherit;text-decoration:none;cursor:pointer}button.danger{background:#8e3440}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #b98f69;outline-offset:3px}.note{font-size:14px;color:#536e7e}.error{background:#ffe9e9;border-left:4px solid #a5313f;padding:16px}.success{background:#e2f2eb;border-left:4px solid #368267;padding:16px}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;background:white}td,th{padding:12px;text-align:left;border-bottom:1px solid #d4e2eb}td{overflow-wrap:anywhere}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.content-card{margin:0}.content-card p{white-space:pre-wrap;overflow-wrap:anywhere}.inline{display:inline-block;margin:5px}footer{padding:25px 5%;background:#102d40;color:#d0e7f4;font-size:13px}.trap{position:absolute;left:-10000px}.invite{word-break:break-all}details{margin:20px 0}summary{cursor:pointer;font-size:20px;font-weight:bold}@media(max-width:650px){.grid{grid-template-columns:1fr}nav{gap:12px}main{padding:30px 16px}.panel{padding:18px}}
.dashboard-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:32px 0;gap:14px}.dashboard-nav a{padding:24px 16px;background:linear-gradient(135deg,#112d40,#24536a);color:#c1ebff;border-radius:14px;border-top:3px solid #bc9774;text-decoration:none;font-weight:700;text-align:center}.dashboard-section{margin:36px 0 56px;scroll-margin-top:20px}.dashboard-section h2{font-size:30px;margin:8px 0}.dashboard-section .table-wrap{border:1px solid #bdd2df;border-radius:12px}.dashboard-section th{background:#e4eff5}.posts-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:24px 0}.posts-grid>div{min-width:0;scroll-margin-top:20px}.post-media{display:block;width:100%;max-height:540px;object-fit:contain;border-radius:8px;background:#102d40}.post-video{display:block;width:100%;aspect-ratio:16/9;border:0;border-radius:8px}.post-editor{max-width:850px!important}.dashboard-section table{min-width:520px}textarea{resize:vertical}input,select,textarea{min-width:0;max-width:100%}@media(max-width:760px){.dashboard-nav{grid-template-columns:1fr}.dashboard-nav a{padding:16px}.posts-grid{grid-template-columns:1fr}}
.application-form h2{margin:0;font-size:26px}.application-form{box-shadow:0 18px 50px #183d5510}.application-close{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border:1px solid #9cb7c7;border-radius:50%;text-decoration:none;font-size:28px;float:right}.broker-picker{border:0;padding:0;margin:24px 0}.broker-picker legend{font-weight:600}.broker-options{display:grid;gap:8px}.broker-option{display:flex;align-items:center;gap:14px;border:1px solid #b6ccd8;border-radius:10px;padding:12px;margin:0;cursor:pointer}.broker-option:has(input:checked){background:#e9f5fc;border-color:#285f7e;box-shadow:0 0 0 1px #285f7e}.broker-option input{width:18px;margin:0}.broker-option img{object-fit:contain;background:white;border-radius:6px;padding:5px}.broker-option[hidden],.broker-search[hidden]{display:none}.broker-search{font-weight:400;font-size:14px}.account-help{display:flex;justify-content:space-between;gap:16px;font-size:12px;color:#536e7e}.application-form textarea{min-height:130px}.application-form button[type=submit]{width:100%;margin-top:12px}.application-form input[type=checkbox]{vertical-align:middle}

.visual-post{margin:0;background:#fff;border:1px solid #b9cedb;border-radius:16px;overflow:hidden;box-shadow:0 10px 26px #173d550a;align-self:start}.visual-post summary{display:block;list-style:none;cursor:pointer}.visual-post summary::-webkit-details-marker{display:none}.post-cover{display:block;width:100%;aspect-ratio:16/10;object-fit:contain;background:#102d40}.card-caption{display:grid;gap:12px;padding:22px}.card-caption small{font-size:12px;color:#886646;letter-spacing:1px}.card-caption strong{font-size:22px;overflow-wrap:anywhere}.card-action{font-size:14px;color:#2a5f7b}.visual-post .content-card{border:0;border-radius:0;border-top:1px solid #c9dce7}.post-placeholder{display:flex;align-items:center;justify-content:center;gap:22px;color:#bde9ff;font-size:28px;letter-spacing:5px;background:linear-gradient(135deg,#102d40,#285d77)}.post-placeholder span{font-size:48px}.member-language{display:flex;gap:6px}.member-language button{border:1px solid #bceaff}.member-language button[aria-pressed=true]{background:#bceaff;color:#102d40}html[lang=km]{font-family:'Noto Sans Khmer','Khmer OS Siemreap',Arial,sans-serif}html[lang=km] h1,html[lang=km] h2,html[lang=km] h3{line-height:1.7}html[lang=km] .eyebrow{letter-spacing:1px}

/* ZENN28 v22: presentation only, no membership or account logic changes. */
html body main:has(.dashboard-nav){width:calc(100% - 80px);max-width:1440px;padding:52px 0 72px;margin-inline:auto;font-size:17px}
html body main:has(.dashboard-nav)>h1{font-size:clamp(30px,3vw,44px);line-height:1.25}
html body main:has(.dashboard-nav)>p{max-width:800px;line-height:1.75}
html body .dashboard-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin:32px 0 40px;align-items:stretch}
html body .dashboard-nav a{position:relative;display:flex;align-items:flex-end;justify-content:flex-start;min-width:0;min-height:230px;aspect-ratio:16/10;padding:26px;text-align:left;font-size:24px;line-height:1.35;font-weight:700;letter-spacing:0;color:#fff!important;text-shadow:0 2px 6px #000a;border:1px solid #b5a58f;border-radius:14px;background-color:#234359;background-size:cover;background-position:center;overflow:hidden;transition:box-shadow .2s}
html body .dashboard-nav a[href="#market-insights"]{background-image:linear-gradient(0deg,#142331eb,transparent 85%),url('/assets/ivory/insights.png')!important}
html body .dashboard-nav a[href="#trading-ideas"]{background-image:linear-gradient(0deg,#241b15eb,transparent 85%),url('/assets/ivory/ideas.png')!important}
html body .dashboard-nav a[href*="journal"]{background-image:linear-gradient(0deg,#241b15eb,transparent 85%),url('/assets/ivory/journal.png')!important}
html body .dashboard-nav a:before{content:'↗';position:absolute;top:18px;right:18px;display:grid;place-items:center;width:38px;height:38px;font-size:25px;color:white;opacity:1;border:1px solid #fff9;border-radius:50%;background:#13202e66}
html body .dashboard-nav a:hover{box-shadow:0 10px 28px #173d552b}
html body .dashboard-nav a:focus-visible{outline:3px solid #17649d;outline-offset:5px}
html body .dashboard-section{margin:52px 0;min-width:0;scroll-margin-top:24px}
html body .dashboard-section h2{font-size:30px;margin:0 0 14px;line-height:1.35}
html body .dashboard-section .section-heading p{max-width:800px;font-size:17px;line-height:1.75}
html body .posts-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:24px;margin:28px 0}
html body .posts-grid>*{min-width:0;overflow-wrap:anywhere}
html body .visual-post{margin:0}
html body .post-cover{width:100%;aspect-ratio:16/10;max-height:none}
html body .card-caption{padding:22px;gap:12px}
html body .card-caption strong{font-size:21px;line-height:1.5}
html body .post-placeholder{background-position:center;background-size:cover;color:#fff;text-shadow:0 2px 6px #000;letter-spacing:3px}
html body #market-insights .post-placeholder{background-image:linear-gradient(#11253644,#11253699),url('/assets/ivory/insights.png')}
html body #trading-ideas .post-placeholder{background-image:linear-gradient(#251c1544,#251c1599),url('/assets/ivory/ideas.png')}
html body #trading-journal .post-placeholder{background-image:linear-gradient(#251c1544,#251c1599),url('/assets/ivory/journal.png')}
html body .dashboard-section .content-card{padding:24px}
html body .dashboard-section .post-video{width:100%;aspect-ratio:16/9;min-width:0}
html body .dashboard-section .table-wrap{max-width:100%;overflow:auto}
@media(min-width:761px) and (max-width:1100px){
 html body main:has(.dashboard-nav){width:calc(100% - 48px)}
 html body .dashboard-nav{gap:18px}
 html body .dashboard-nav a{min-height:210px;padding:20px;font-size:21px}
 html body .posts-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
 html body main:has(.dashboard-nav){width:calc(100% - 36px);padding:30px 0 48px;font-size:16px}
 html body .dashboard-nav{grid-template-columns:1fr;gap:18px;margin:26px 0 32px}
 html body .dashboard-nav a{min-height:210px;aspect-ratio:16/9;font-size:23px;padding:24px}
 html body .posts-grid{grid-template-columns:1fr;gap:20px}
 html body .dashboard-section{margin:36px 0}
 html body .dashboard-section h2{font-size:27px}
 html body .dashboard-section .content-card{padding:20px}
 html body .card-caption{padding:20px}
 html body header{gap:16px;padding:20px 18px}
 html body header nav{gap:12px;flex-wrap:wrap}
}
@media(prefers-reduced-motion:reduce){html body .dashboard-nav a{transition:none}}

@media(min-width:761px){
 html body main:has(.dashboard-nav){width:94%;max-width:1800px;font-size:18px}
 html body .dashboard-nav a{font-size:28px;min-height:280px;max-height:350px}
 html body .dashboard-section .section-heading p{font-size:19px}
 html body .card-caption strong{font-size:23px}
}

/* Full-width member workspace with the three generated artwork cards. */
@media(min-width:761px){html body main:has(.dashboard-nav){width:96%;max-width:none}}
html body .dashboard-nav a{aspect-ratio:3/2;min-height:0;max-height:none;background-size:cover;background-repeat:no-repeat}
html body .dashboard-nav a[href="#market-insights"]{background-image:linear-gradient(0deg,#142331eb,transparent 85%),url('/assets/ivory/insights.png')!important}
html body .dashboard-nav a[href="#trading-ideas"]{background-image:linear-gradient(0deg,#241b15eb,transparent 85%),url('/assets/ivory/ideas.png')!important}
html body .dashboard-nav a[href*="journal"]{background-image:linear-gradient(0deg,#241b15eb,transparent 85%),url('/assets/ivory/journal.png')!important}
