/* UNESCO blue foundation, CODEMAO-inspired coral accents. */
:root{--blue:#cd3735;--ink:#183349;--muted:#647686;--border:#dfe6eb;--bg:#f4f7f8;--light:#fff0ee;--orange:#ed4945;--brand-blue:#0069b4}body{font-family:-apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft Yahei',Arial,sans-serif}button{border-radius:9px;font-size:14px;font-weight:500}button:hover{border-color:#d7837e;background:#fff7f6}button.primary{background:#cf3634;border-color:#cf3634}button.primary:hover{background:#b52c2b}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #0076c9;outline-offset:3px}input,select,textarea{font-size:16px;background:#fff}h1{font-size:30px;letter-spacing:-1px;font-weight:700;line-height:1.35}h2{letter-spacing:-.4px}small{font-size:13px}.sidebar{width:244px;padding:30px 18px 0;background:#fff}.shell{margin-left:244px}.brand{font-size:20px;gap:12px}.brand small{font-size:12px;letter-spacing:.6px;margin-top:3px}.brand-mark{position:relative;display:grid;place-items:center;background:#ed4945;color:white;letter-spacing:-1px;font-size:18px;width:46px;height:46px;border-radius:12px;line-height:1;padding:0;transform:rotate(-4deg)}.brand-mark .brand-pixel{position:absolute;right:-3px;bottom:-3px;width:12px;height:12px;background:#0069b4;border:3px solid white;border-radius:3px}.brand-partners{display:flex;align-items:center;gap:10px;padding:24px 8px 0;font:700 13px Arial;letter-spacing:.5px;color:#0069b4}.brand-partners b{color:#d33d3b}.brand-partners i{height:16px;border-left:1px solid #dce3e8}.workspace-label{font-size:12px;color:#7b8791;margin:34px 12px 12px;letter-spacing:1px}.sidebar .nav-btn{font-size:15px;padding:14px 12px;margin-bottom:8px;gap:10px;border-radius:9px}.nav-btn.active{color:#b92e2d;background:#fff0ee;box-shadow:inset 3px 0 #ed4945}.nav-btn.active svg{stroke-width:2}.sidebar-bottom{padding:26px 10px 20px}.sidebar-bottom b{font-size:14px}.sidebar-bottom p{font-size:14px}.note-icon{color:#0069b4;font-size:26px}.text-btn{font-size:13px}.profile{font-size:14px}.profile>span{background:#fff0ee;color:#c93432}.profile small{font-size:12px}.sidebar-bottom small{color:#667785}.shell>header{padding:0 40px;background:#ffffff;height:72px}.breadcrumb{font-size:14px}.header-right{font-size:13px;color:#677887}.version{background:#edf5fb;color:#0061a1;padding:5px 10px}.eyebrow{font-size:12px;letter-spacing:1.6px;color:#0071b6}.page-heading{margin-bottom:30px;align-items:flex-start}.page-heading p{font-size:15px;max-width:610px;color:#63788a;line-height:1.7}.page-heading .actions{padding-top:8px}main{padding:32px 40px 110px}.resource-tabs{gap:8px;background:#fff;border:1px solid var(--border);border-radius:12px;padding:7px;margin-bottom:30px}.resource-tabs>button{padding:10px 18px;border:0;background:transparent;color:#667785}.resource-tabs>button.primary{background:#fff0ee;color:#bb302e}.resource-tabs>span{font-size:13px;padding-right:10px}.event-grid{gap:12px;margin-bottom:24px}.event-tile{padding:14px;border-radius:12px;min-height:88px}.event-tile.active{background:#fff7f5;box-shadow:0 0 0 1px #e55550;border-color:#e55550}.event-tile .event-cover{width:48px;height:52px;border-radius:8px;object-fit:cover}.event-tile .event-year{min-width:36px;font-size:14px;color:#526b7e}.event-tile h3{font-size:15px}.event-tile p{font-size:12px;color:#647686}.event-banner{background:#073455;border-radius:14px;padding:26px 30px;border-left:5px solid #ed4945}.event-banner:after{width:280px;height:280px;border-radius:0;transform:rotate(32deg);border-color:#53bfed36;right:28%;top:-180px;box-shadow:24px 24px 0 #1476ad17,48px 48px 0 #1476ad0c}.event-banner .eyebrow{font-size:11px;color:#92cae7;letter-spacing:2px}.event-banner h2{font-size:24px}.event-banner p{font-size:14px;color:#bfd8e9}.event-banner a{font-size:13px;color:#d0eaff}.event-stats{gap:26px}.event-stats b{font-size:29px;font-weight:650}.event-stats small{font-size:12px;color:#bed5e4}.segmented button{font-size:15px}.chip{font-size:14px;color:#596f81;padding:7px 12px}.chip.active{border-color:#f0b6af;background:#fff2ef;color:#b82f2c}.chip span{font-size:12px}.toolbar{gap:12px}.filters select{font-size:14px;width:145px}.gallery-caption{font-size:13px;color:#6a7c89}.photo-card{border-radius:13px;box-shadow:0 2px 6px #193c5104}.photo-card:hover{box-shadow:0 8px 25px #18335412}.photo-image{height:220px}.photo-info{padding:16px}.photo-info h3{font-size:15px}.photo-meta{font-size:12px;color:#657a8b}.tag{font-size:12px;background:#edf4f9;color:#41677e}.photo-badge{font-size:12px}.notice{font-size:13px;color:#667785}.source-row p,.source-row .tag{font-size:13px}.knowledge-card{box-shadow:0 2px 10px #16364d03;border-radius:14px}.knowledge-card .card-top h3{font-size:18px}.knowledge-card>p{font-size:16px}.task-controls{border-top:4px solid #ed4945}.output-panel{border-top:4px solid #0069b4}.audience-note,.info-panel{background:#edf5fb;border-color:#d9e9f4;color:#355b75}.example-box{background:#f1f7fb;border-color:#dae8f1}.draft-empty>svg{color:#0069b4;background:#eaf4fb}.inline-help{font-size:13px;color:#627788}.check-label{font-size:14px;align-items:flex-start}.check-label input{flex-shrink:0;margin-top:4px}.studio-layout{grid-template-columns:300px minmax(0,1fr);gap:24px}.studio-controls{padding:22px;border-radius:14px}.studio-controls h3{font-size:16px}.studio-controls label.field{font-size:14px}.studio-controls .check-label{font-size:14px}.visual-brief{border-top:3px solid #0069b4;padding-top:18px}.visual-brief button{margin-top:12px}.studio-stage{padding:24px;background:#e9eff3;border:1px solid #dce4e9;border-radius:16px;min-width:0;background-image:radial-gradient(#adc1cc50 .7px,transparent .7px);background-size:14px 14px}.design-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}.design-heading h2{font-size:21px}.design-heading .eyebrow{font-size:11px}.design-heading button{font-size:13px;padding:7px 10px;flex-shrink:0}.template-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:24px}.template-card{padding:10px;background:#f8fafc;border:1px solid #d4dfe6;display:flex;flex-direction:column;gap:10px;text-align:left;align-items:stretch;position:relative;border-radius:10px}.template-card.active{border:2px solid #0069b4;padding:9px;background:white}.template-card:hover{background:#fff;border-color:#0076b9}.template-card>svg{position:absolute;right:13px;top:14px;width:18px;height:18px;background:#0069b4;border-radius:50%;color:white;padding:3px}.template-card strong{font-size:14px;color:#153e5d;display:block}.template-card small{font-size:12px;line-height:1.5;color:#5d7383;display:block;margin-top:4px}.template-mini{height:100px;background:white;display:block;position:relative;overflow:hidden;border:1px solid #e1e9f0;border-radius:3px}.template-mini:before{content:'YCI';position:absolute;left:12px;top:12px;color:#0069b4;font:700 16px Arial;letter-spacing:1px}.template-mini i{position:absolute;left:0;right:0;top:43px;height:29px;background:#7eabc3}.template-mini b{position:absolute;left:12px;top:77px;width:32%;height:3px;background:#c5d7e3;box-shadow:0 6px #d6e1e8}.template-mini em{position:absolute;left:55%;top:77px;width:32%;height:3px;background:#c5d7e3;box-shadow:0 6px #d6e1e8}.template-mini>span{position:absolute;right:0;top:0;width:27%;height:4px;background:#ed4945}.template-mini.creative i{left:12px;right:12px;border-radius:8px;background:#97bacd;border-bottom:4px solid #ed4945}.template-mini.creative:after{content:'';position:absolute;right:15px;top:18px;width:14px;height:14px;border:4px solid #ed4945}.template-mini.digital{background:#072b4b}.template-mini.digital:before{color:white}.template-mini.digital i{left:12px;right:12px;background:#176180;border-bottom:3px solid #ed4945}.template-mini.digital:after{content:'';position:absolute;right:24px;top:17px;width:25px;height:17px;border-top:1px solid #48a5cb;border-right:1px solid #48a5cb}.stage-toolbar{font-size:13px;margin:8px 0 16px;color:#455f72}.stage-switch{font-size:13px}.stage-caption{font-size:13px;color:#5b7385;line-height:1.7}.page-label{font-size:13px}.page-preview>svg{max-width:650px!important;box-shadow:0 12px 28px #15364f1a!important}.page-previews.compare{gap:16px}.page-preview{min-width:0}.preflight{border:1px solid #d3e0e9;background:#f8fcff;padding:16px 18px;border-radius:10px;margin-top:22px}.preflight>div{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:14px}.preflight b{color:#24485f}.preflight span{color:#637f91;font-size:13px}.preflight p{font-size:13px;color:#637788;line-height:1.7;margin-top:8px}.preflight ul{font-size:14px;color:#ae3c32;padding-left:20px}.brand-upload-preview{background:#f7fafc;padding:24px;border:1px dashed #b4cad8;margin-top:20px;min-height:100px;display:flex;justify-content:center;align-items:center}.brand-upload-preview img{max-width:100%;max-height:100px;object-fit:contain}.brand-upload-preview b{color:#0069b4;letter-spacing:1px}.brand-upload-preview span{color:#d53b38}.cover-pick button{width:65px;height:48px}.side-tabs button{font-size:14px}.selection-inner,#toast{left:calc(50% + 122px)}
@media(min-width:1600px){.photo-image{height:230px}.studio-layout{grid-template-columns:330px minmax(0,1fr)}}
@media(max-width:1200px){.sidebar{width:212px;padding-left:14px;padding-right:14px}.shell{margin-left:212px}.brand{font-size:17px}.sidebar .nav-btn{font-size:14px}main{padding:28px 24px 100px}.shell>header{padding:0 24px}.studio-layout{grid-template-columns:270px minmax(0,1fr);gap:18px}.studio-stage{padding:16px}.design-heading{flex-wrap:wrap}.template-card small{font-size:12px}.template-mini{height:90px}.photo-image{height:200px}.selection-inner,#toast{left:calc(50% + 106px)}.event-tile .event-cover{display:none}}
@media(max-width:1000px){.studio-layout{grid-template-columns:1fr}.studio-stage{order:-1}.studio-controls{display:block}.studio-controls .cover-pick{max-width:600px}.template-card{flex-direction:row;align-items:center}.template-mini{width:70px;min-width:70px;height:95px}.template-card small{display:none}.template-card>svg{right:5px;top:5px;width:15px;height:15px}.task-layout{grid-template-columns:1fr}.draft-empty{min-height:350px}.page-heading .actions{padding:0}.resource-tabs>button{padding:9px 13px}}
@media(max-width:760px){.sidebar{position:sticky;top:0;width:100%;padding:10px 12px;flex-wrap:wrap;gap:10px;background:#fffffffa;backdrop-filter:blur(14px)}.brand{font-size:17px}.brand-mark{width:34px;height:34px;font-size:15px;border-radius:9px}.brand-partners{padding:0;margin-left:auto;font-size:11px;gap:7px}.brand-partners i{height:12px}.brand small{display:none}#nav{width:100%;display:grid;grid-template-columns:repeat(4,1fr);gap:4px}.sidebar .nav-btn{font-size:12px;margin:0;padding:10px 4px;justify-content:center}.nav-btn.active{box-shadow:inset 0 -2px #ed4945}.shell{margin-left:0}.shell>header{height:48px;padding:0 16px}.breadcrumb{font-size:12px}.breadcrumb span{margin:0 5px}.header-right .version{font-size:11px;padding:3px 6px}main{padding:22px 16px 100px}h1{font-size:25px}.page-heading p{font-size:14px}.page-heading{gap:16px;margin-bottom:22px}.page-heading .actions{gap:6px}.page-heading .actions button{font-size:13px;padding:8px 10px}.resource-tabs{margin-bottom:22px;padding:5px;gap:3px}.resource-tabs>button{font-size:14px;padding:8px 10px}.event-grid{gap:9px}.event-tile{padding:12px 10px;gap:9px;min-height:80px}.event-tile h3{font-size:13px}.event-tile p{font-size:12px}.event-banner{padding:20px;flex-wrap:wrap}.event-banner h2{font-size:21px}.event-banner p{font-size:13px}.event-stats{gap:22px;text-align:left}.event-stats>div:last-child{display:block}.event-stats b{font-size:23px}.event-stats small{font-size:12px}.filters{gap:6px}.filters select{width:137px}.filters button{font-size:13px}.photo-image{height:165px}.photo-info{padding:12px}.photo-info h3{font-size:14px}.photo-meta{font-size:12px;flex-wrap:wrap;gap:4px}.gallery-caption{flex-wrap:wrap;gap:6px}.gallery-caption>span{display:none}.gallery{gap:10px}.tag{font-size:12px}.photo-badge{font-size:11px}.template-card{flex-direction:column;padding:8px}.template-card.active{padding:7px}.template-mini{width:100%;height:90px}.template-card strong{font-size:13px}.design-heading h2{font-size:19px}.studio-stage{padding:12px}.template-gallery{gap:7px}.studio-controls{padding:18px}.preflight{padding:13px}.page-previews.compare{grid-template-columns:1fr}.selection-inner{left:50%;width:calc(100% - 24px);flex-wrap:wrap;justify-content:center;gap:8px;bottom:10px;padding:10px;font-size:13px}.selection-inner button{font-size:12px;padding:7px}#toast{left:50%;top:125px}.task-controls,.output-panel{padding:18px}.stage-switch{flex-wrap:wrap;gap:8px}.knowledge-card{padding:20px}.source-row{padding:16px;gap:10px;grid-template-columns:35px 1fr}.source-row .actions{grid-column:2}.source-row .actions .tag{display:none}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}.photo-card:hover{transform:none}}
.module-order{margin:16px 0;background:#f5f8fa;padding:12px;border-radius:8px;font-size:14px}.module-order summary{cursor:pointer;font-weight:600}.module-order>div{display:flex;align-items:center;gap:6px;padding:10px 0;border-bottom:1px solid #e1e8ed}.module-order>div:last-child{border:0}.module-order span{flex:1;min-width:0}.module-order button{font-size:12px;padding:4px 6px}
/* v7: individual template identities and brand asset controls */
.template-gallery{grid-template-columns:repeat(4,minmax(0,1fr))}.template-card small{font-size:12px}.template-mini.recruit{background:#ffebe8}.template-mini.recruit:before{content:'CREATE';font-size:22px;color:#ed4945;top:17px;left:8px}.template-mini.recruit i{top:49px;left:9px;right:9px;height:13px;background:#ed4945;border-radius:4px}.template-mini.glass{background:linear-gradient(125deg,#fff1ed,#e5efff)}.template-mini.glass:before{content:'AI FOR ALL';font-size:13px;top:12px}.template-mini.glass i{top:29px;left:0;right:0;height:70px;background:url('assets/brand/codemao-tech-cat.png') center 46%/contain no-repeat}.template-mini.glass b,.template-mini.glass em{display:none}.template-mini.blocks{background:#f3efff}.template-mini.blocks:before{content:'{ CREATE }';font-size:15px;color:#7051ed}.template-mini.blocks i{top:43px;left:15px;right:26px;height:13px;border-radius:4px;background:#7051ed;box-shadow:7px 16px #29bfa2,13px 32px #f4aa42}.template-mini.blocks b,.template-mini.blocks em{display:none}.template-mini.report i{left:12px;right:auto;top:37px;width:27%;height:20px;border-radius:3px;box-shadow:0 28px #97bacd}.template-mini.report b{left:45%;top:39px;width:40%;height:4px;box-shadow:0 7px #d6e1e8,0 14px #d6e1e8}.template-mini.report em{left:45%;top:67px;width:40%;height:4px;box-shadow:0 7px #d6e1e8,0 14px #d6e1e8}.brand-source-note{border:1px solid #e2e8ef;background:#fff;padding:12px;border-radius:9px;margin:12px 0}.brand-source-note img{width:150px;height:auto;display:block}.brand-source-note p{font-size:12px;color:#677b8b;margin-top:8px;line-height:1.6}.brand-source-note a{color:#0069b4}.report-photo-settings{border:1px solid #dbe6ee;border-radius:9px;padding:12px;margin:14px 0}.report-photo-settings summary{font-weight:600;cursor:pointer}.report-photo-settings .field{margin-top:12px}.cover-pick[hidden]{display:none}.template-card:focus-visible{outline:3px solid #7051ed;outline-offset:2px}@media(max-width:1200px){.template-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:760px){.template-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.template-mini{height:88px}}
