:root { color-scheme: light; --ink:#211348; --purple:#603da5; --purple-dark:#422476; --lavender:#f3eefb; --line:#ded8e8; --paper:#fff; --muted:#6c657b; --green:#19754c; --red:#b9261c; }
* { box-sizing:border-box; }
body { margin:0; min-height:100vh; background:#f7f6f3; color:var(--ink); font-family:Inter,Roboto,Arial,sans-serif; font-size:16px; line-height:1.5; }
button,input { font:inherit; }
button { cursor:pointer; }
.topbar { height:76px; padding:0 clamp(18px,4vw,64px); display:flex; align-items:center; justify-content:space-between; background:var(--paper); border-bottom:1px solid var(--line); }
.brand img { display:block; width:156px; height:auto; }
.session-code { padding:7px 10px; border:1px solid var(--line); font-size:13px; font-weight:800; }
.shell { width:min(1220px,calc(100% - 32px)); margin:0 auto; padding:clamp(28px,5vw,64px) 0; }
.welcome-grid { min-height:calc(100vh - 204px); display:grid; grid-template-columns:minmax(0,1.2fr) minmax(320px,.8fr); align-items:center; gap:clamp(40px,8vw,120px); }
.welcome-copy h1 { max-width:760px; margin:10px 0 18px; font-size:clamp(48px,7vw,92px); line-height:.98; letter-spacing:0; }
.welcome-copy p { max-width:620px; margin:0; color:#463d60; font-size:clamp(18px,2vw,24px); }
.entry-panel,.panel { background:var(--paper); border:1px solid var(--line); padding:28px; box-shadow:0 12px 30px rgba(42,24,78,.06); }
.stack { display:grid; gap:10px; }
label { font-size:14px; font-weight:800; }
input { width:100%; min-height:48px; border:1px solid #aaa2b8; padding:10px 12px; color:var(--ink); background:#fff; }
input:focus { outline:3px solid #ded0f4; border-color:var(--purple); }
.button,.action-row button { min-height:44px; border:1px solid transparent; padding:10px 18px; font-weight:800; border-radius:4px; }
.button.primary,.action-row button:not(.secondary) { background:var(--purple); color:#fff; }
.button.primary:hover,.action-row button:not(.secondary):hover { background:var(--purple-dark); }
.button.secondary,.action-row .secondary { background:#fff; color:var(--purple); border-color:#a996c9; }
.button:disabled,button:disabled { opacity:.55; cursor:wait; }
.divider { display:flex; align-items:center; gap:12px; margin:24px 0; color:var(--muted); font-size:13px; }
.divider::before,.divider::after { content:""; height:1px; background:var(--line); flex:1; }
.eyebrow { color:var(--purple); font-size:13px; font-weight:900; letter-spacing:0; text-transform:uppercase; }
.workspace { display:grid; gap:24px; }
.workspace-head { display:flex; justify-content:space-between; align-items:end; gap:20px; }
.workspace-head h1 { margin:4px 0 0; font-size:clamp(34px,5vw,58px); line-height:1; }
.head-actions { display:flex; gap:10px; }
.summary-grid { display:grid; grid-template-columns:repeat(4,1fr); border:1px solid var(--line); background:#fff; }
.summary-item { min-width:0; padding:18px 22px; border-right:1px solid var(--line); }
.summary-item:last-child { border:0; }
.summary-item span,.balance span { display:block; color:var(--muted); font-size:12px; font-weight:800; text-transform:uppercase; }
.summary-item strong { display:block; margin-top:3px; font-size:22px; text-transform:capitalize; }
.two-column { display:grid; grid-template-columns:minmax(0,1fr) minmax(280px,360px); gap:24px; align-items:start; }
.two-column > div,.two-column aside { display:grid; gap:16px; }
.panel h2,.round-brief h2 { margin:6px 0 12px; font-size:clamp(25px,3vw,38px); line-height:1.12; }
.panel h3 { margin:24px 0 8px; }
.muted { color:var(--muted); }
.question { margin-top:22px; padding:18px 20px; border-left:4px solid var(--purple); background:var(--lavender); display:grid; gap:4px; }
.question span { color:var(--purple); font-size:12px; font-weight:900; }
.question strong { font-size:18px; }
.list-row,.proposal { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 0; border-bottom:1px solid var(--line); }
.list-row b,.proposal span { color:var(--muted); font-size:13px; }
.panel-title { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.panel-title h2 { margin-top:0; }
.participant-count { min-width:30px; height:30px; padding:4px 8px; display:inline-grid; place-items:center; border-radius:50%; background:var(--lavender); color:var(--purple); font-weight:900; }
.participant-row > span { min-width:0; display:flex; align-items:center; gap:9px; }
.participant-row strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.presence-dot { width:9px; height:9px; flex:0 0 9px; border-radius:50%; background:var(--green); box-shadow:0 0 0 3px rgba(25,117,76,.12); }
.proposal { align-items:start; flex-direction:column; }
.action-row { display:flex; flex-wrap:wrap; gap:10px; }
.identity { width:min(480px,100%); margin:7vh auto 0; }
.identity h1 { margin:7px 0 24px; font-size:40px; }
.hidden { display:none !important; }
.notice { padding:13px 16px; color:#3f315c; background:var(--lavender); border-left:4px solid var(--purple); font-weight:700; }
.balance { text-align:right; }
.balance strong { display:block; font-size:32px; line-height:1; }
.avatar-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.avatar-option { min-width:0; min-height:220px; padding:14px; border:1px solid var(--line); background:#fff; display:flex; flex-direction:column; align-items:center; justify-content:end; gap:3px; transition:transform .18s,border-color .18s; }
.avatar-option:hover { transform:translateY(-3px); border-color:var(--purple); }
.avatar-option img { width:100%; height:150px; object-fit:contain; }
.avatar-option span { color:var(--purple); font-size:13px; }
.round-brief { padding:clamp(20px,4vw,42px); background:#fff; border:1px solid var(--line); }
.round-brief > p { max-width:900px; color:#453b60; font-size:18px; }
.deck-section { min-width:0; }
.deck-heading { display:flex; align-items:end; justify-content:space-between; gap:20px; margin-top:4px; }
.deck-heading h2 { margin:4px 0 0; }
.deck-heading > span { color:var(--muted); font-weight:800; }
.project-deck-scroll { max-height:min(660px,68vh); overflow-y:auto; overscroll-behavior:contain; padding:2px 10px 4px 2px; scrollbar-gutter:stable; }
.project-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin:12px 0 20px; }
.project-card { min-width:0; min-height:310px; background:#fff; border:1px solid var(--line); display:grid; grid-template-columns:minmax(112px,36%) minmax(0,1fr); overflow:hidden; cursor:pointer; transition:transform .18s,border-color .18s,box-shadow .18s; }
.project-card:hover,.project-card:focus-visible { transform:translateY(-2px); border-color:var(--purple); box-shadow:0 10px 24px rgba(42,24,78,.1); }
.project-card:focus-visible { outline:3px solid #ded0f4; }
.project-thumb { width:100%; height:100%; min-height:310px; object-fit:cover; }
.project-card-body { min-width:0; padding:18px; display:flex; flex-direction:column; justify-content:space-between; gap:14px; }
.project-card h3 { margin:5px 0 10px; font-size:20px; line-height:1.2; }
.project-card p { display:-webkit-box; overflow:hidden; color:#514968; font-size:14px; -webkit-box-orient:vertical; -webkit-line-clamp:5; }
.project-sdgs { display:flex; flex-wrap:wrap; gap:6px; }
.project-sdgs img { width:38px; height:38px; object-fit:cover; }
.project-foot { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.project-foot > strong { font-size:28px; }
.project-card-actions { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:10px; }
.project-card-actions .button { padding:8px 12px; font-size:13px; }
.project-card-actions .text-button { font-size:13px; }
.project-dialog { width:min(1080px,calc(100% - 32px)); max-height:calc(100vh - 32px); padding:0; border:0; color:var(--ink); box-shadow:0 24px 80px rgba(25,13,54,.32); }
.project-dialog::backdrop { background:rgba(24,17,40,.58); backdrop-filter:blur(3px); }
.dialog-close { position:absolute; top:16px; right:16px; z-index:2; width:42px; height:42px; padding:0; border:0; border-radius:50%; background:#17131d; color:#fff; font-size:29px; line-height:1; }
.project-dialog-grid { min-height:560px; display:grid; grid-template-columns:minmax(280px,38%) minmax(0,1fr); }
.project-dialog-media { min-height:0; background:#eeeaf4; overflow:hidden; }
.project-dialog-media img { width:100%; height:100%; object-fit:cover; display:block; }
.project-dialog-copy { min-width:0; padding:clamp(34px,5vw,64px); padding-right:clamp(58px,6vw,78px); overflow-y:auto; }
.project-dialog-copy h2 { margin:7px 0 14px; font-size:clamp(30px,4vw,48px); line-height:1.06; }
.project-dialog-copy > p { color:#453b60; font-size:17px; line-height:1.7; }
.project-dialog-sdgs img { width:52px; height:52px; }
.impact-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); margin:26px 0; border:1px solid var(--line); }
.impact-item { min-width:0; padding:12px 8px; border-right:1px solid var(--line); text-align:center; }
.impact-item:last-child { border:0; }
.impact-item span { display:block; overflow:hidden; color:var(--muted); font-size:11px; font-weight:800; text-overflow:ellipsis; text-transform:capitalize; }
.impact-item strong { display:block; margin-top:4px; color:var(--green); font-size:20px; }
.impact-item.negative strong { color:var(--red); }
.project-dialog-foot { display:flex; align-items:center; justify-content:space-between; gap:18px; padding-top:20px; border-top:1px solid var(--line); }
.project-dialog-foot > strong { font-size:24px; }
.text-button { padding:8px 0; border:0; border-bottom:1px solid var(--purple); background:transparent; color:var(--purple); font-weight:800; }
.aid-vote,.winner { margin-top:22px; padding:22px; border:1px solid var(--line); background:#fff; display:flex; align-items:center; justify-content:space-between; gap:20px; }
.aid-vote h2,.winner h2 { margin:4px 0 0; }
.toast { position:fixed; right:18px; bottom:18px; max-width:min(420px,calc(100% - 36px)); padding:14px 18px; background:#20143c; color:#fff; box-shadow:0 8px 30px rgba(0,0,0,.22); transform:translateY(140%); transition:transform .2s; z-index:10; }
.toast.show { transform:translateY(0); }
@media (max-width:900px) { .welcome-grid,.two-column { grid-template-columns:1fr; } .welcome-grid { min-height:0; } .summary-grid { grid-template-columns:repeat(2,1fr); } .summary-item:nth-child(2) { border-right:0; } .summary-item:nth-child(-n+2) { border-bottom:1px solid var(--line); } .avatar-grid { grid-template-columns:repeat(2,1fr); } .project-grid { grid-template-columns:1fr; } .project-dialog-grid { grid-template-columns:1fr; } .project-dialog-media { height:min(300px,38vh); } .project-dialog-copy { padding:30px; padding-right:58px; } }
@media (max-width:560px) { .topbar { height:64px; padding:0 16px; } .brand img { width:122px; } .shell { width:min(100% - 24px,1220px); padding:24px 0 40px; } .welcome-copy h1 { font-size:46px; } .entry-panel,.panel { padding:20px; } .workspace-head { align-items:start; flex-direction:column; } .head-actions,.head-actions .button { width:100%; } .summary-item { padding:13px; } .summary-item strong { font-size:18px; } .avatar-option { min-height:190px; } .avatar-option img { height:120px; } .deck-heading { align-items:start; flex-direction:column; gap:4px; } .project-deck-scroll { max-height:none; overflow:visible; padding:0; } .project-card { min-height:0; grid-template-columns:1fr; } .project-thumb { height:190px; min-height:0; } .project-dialog { width:100%; max-width:none; max-height:100vh; margin:0; } .project-dialog-grid { min-height:100vh; } .project-dialog-media { height:230px; } .project-dialog-copy { padding:26px 20px 36px; } .project-dialog-copy h2 { font-size:30px; padding-right:32px; } .project-dialog-copy > p { font-size:16px; } .project-dialog-sdgs img { width:44px; height:44px; } .impact-grid { grid-template-columns:repeat(2,1fr); } .impact-item { border-bottom:1px solid var(--line); } .project-dialog-foot { align-items:stretch; flex-direction:column; } .project-dialog-foot .button { width:100%; } .aid-vote,.winner { align-items:stretch; flex-direction:column; } .action-row,.action-row button { width:100%; } }
