:root{--ink:#18312c;--muted:#6e827b;--line:#e5ece8;--paper:#fff;--bg:#f4f7f5;--teal:#087d68;--mint:#dff4eb;--gold:#d8a54c;--shadow:0 18px 48px rgba(29,64,53,.08)}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font-family:'K2D',Tahoma,sans-serif;font-size:16px;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
button{font:inherit}
.home-header{height:76px;padding:0 max(22px,calc((100vw - 1160px)/2));display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid var(--line)}
.home-brand{display:flex;align-items:center;gap:12px}.brand-mark{width:42px;height:42px;display:grid;place-items:center;border-radius:14px;background:linear-gradient(145deg,#1db58e,#087d68);color:#fff;font-weight:800;box-shadow:0 7px 16px #087d6828}.home-brand strong,.home-brand small{display:block}.home-brand strong{font-size:16px;letter-spacing:.1px}.home-brand small{margin-top:3px;font-size:12px;color:var(--muted)}
.home-actions{display:flex;align-items:center;gap:10px}.home-actions form{margin:0}.signed-user{color:var(--muted);font-size:13px}
.button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:44px;padding:0 17px;border:1px solid transparent;border-radius:12px;font-weight:700;font-size:14px;cursor:pointer;transition:transform .18s,background .18s,box-shadow .18s}.button:hover{transform:translateY(-1px)}.button-outline{border-color:#dce6e1;background:#fff;color:var(--ink)}.button-quiet{background:var(--mint);color:var(--teal)}.button-primary{background:var(--teal);color:#fff;box-shadow:0 8px 18px #087d6828}.button-primary:hover{background:#076c5b}
.home-main{width:min(1160px,calc(100% - 44px));margin:38px auto 64px}.welcome-card{position:relative;min-height:310px;overflow:hidden;display:flex;align-items:center;padding:46px 54px;border-radius:26px;background:linear-gradient(115deg,#153f3a 0%,#116a60 65%,#198b72 100%);color:#fff;box-shadow:var(--shadow)}.welcome-card:before,.welcome-card:after{position:absolute;content:"";border:1px solid #ffffff20;border-radius:50%;pointer-events:none}.welcome-card:before{width:330px;height:330px;right:95px;top:-165px;box-shadow:0 0 0 28px #ffffff08,0 0 0 58px #ffffff06}.welcome-card:after{width:220px;height:220px;right:-105px;bottom:-155px;box-shadow:0 0 0 24px #ffffff08,0 0 0 50px #ffffff06}.welcome-copy{position:relative;z-index:1;max-width:610px}.eyebrow{font-size:11px;font-weight:800;letter-spacing:1.5px;color:#54d1ac}.welcome-card h1{margin:12px 0 10px;font-size:clamp(32px,4vw,48px);line-height:1.28;letter-spacing:-.7px}.welcome-card h1 em{font-style:normal;color:#a9eed7}.welcome-card p{margin:0 0 24px;color:#d5eee7;font-size:16px}.welcome-card .button-primary{background:#fff;color:#126d5c;box-shadow:0 8px 20px #0a3b322c}.domain-note{display:block;margin-top:13px;color:#d7eee7;font-size:12px}.welcome-art{position:absolute;right:11%;top:50%;width:205px;height:205px;transform:translateY(-50%);display:grid;place-items:center}.art-ring{position:absolute;inset:13px;border:1px solid #ffffff3b;border-radius:50%;box-shadow:0 0 0 20px #ffffff0a,0 0 0 42px #ffffff08}.art-check{width:112px;height:112px;display:grid;place-items:center;border:1px solid #ffffff52;border-radius:34px;background:#ffffff20;color:#d1ffed;font-size:58px;transform:rotate(-8deg);box-shadow:0 18px 38px #073c2e45}.art-spark{position:absolute;color:#f6d795}.spark-one{top:9px;right:30px;font-size:24px}.spark-two{bottom:19px;left:6px;font-size:17px}
.latest-section{margin-top:40px}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:18px}.section-heading .eyebrow{color:var(--teal);font-size:10px}.section-heading h1,.section-heading h2{margin:5px 0 3px;font-size:27px;letter-spacing:-.3px}.section-heading p{margin:0;color:var(--muted);font-size:14px}.text-link{display:inline-flex;align-items:center;gap:8px;color:var(--teal);font-size:14px;font-weight:700;white-space:nowrap}.event-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.event-card{min-height:205px;padding:20px 21px;border:1px solid var(--line);border-radius:18px;background:var(--paper);box-shadow:0 5px 18px rgba(29,64,53,.035);display:flex;flex-direction:column;transition:transform .18s,box-shadow .18s}.event-card:hover{transform:translateY(-2px);box-shadow:var(--shadow)}.event-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.event-index{color:#a8b8b1;font-size:12px;font-weight:800;letter-spacing:1px}.event-state{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border-radius:99px;font-size:11px;font-weight:700;white-space:nowrap}.event-state i{width:6px;height:6px;border-radius:50%;background:currentColor}.event-state.is-open{background:#e6f7ef;color:#16805f}.event-state.is-closed{background:#f1f3f2;color:#77857f}.event-card h3{margin:15px 0 6px;font-size:18px;line-height:1.45}.event-description{margin:0 0 12px;color:var(--muted);font-size:13px;line-height:1.55;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.event-meta{display:flex;flex-wrap:wrap;gap:8px 13px;margin-top:auto;padding-top:12px;color:var(--muted);font-size:12px}.empty-card{min-height:180px;display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px dashed #cfddd5;border-radius:18px;background:#fff;text-align:center}.empty-icon{font-size:28px;color:var(--teal)}.empty-card strong{margin-top:8px;font-size:16px}.empty-card p{margin:5px 0 0;color:var(--muted);font-size:13px}.all-events-mobile{display:none}.home-footer{padding:0 20px 25px;text-align:center;color:#8a9a93;font-size:12px}.activities-main{min-height:calc(100vh - 185px)}.back-link{display:inline-block;margin-bottom:24px;color:var(--muted);font-size:14px;font-weight:600}.count-pill{padding:9px 13px;border:1px solid var(--line);border-radius:99px;background:#fff;color:var(--teal);font-weight:700;font-size:13px;white-space:nowrap}.all-events-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.event-open-link{display:flex;align-items:center;justify-content:space-between;margin-top:17px;padding-top:12px;border-top:1px solid var(--line);color:var(--teal);font-size:13px;font-weight:700}
@media(max-width:860px){.welcome-card{padding:38px}.welcome-art{right:5%;transform:translateY(-50%) scale(.82)}.event-grid,.all-events-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.home-header{height:66px;padding:0 15px}.brand-mark{width:38px;height:38px;border-radius:12px}.home-brand strong{font-size:14px}.home-brand small{font-size:11px}.home-actions{gap:7px}.home-actions .button{min-height:40px;padding:0 12px;font-size:12px}.signed-user{max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.home-main{width:calc(100% - 28px);margin:18px auto 42px}.welcome-card{min-height:0;padding:28px 23px 26px;border-radius:21px}.welcome-card h1{font-size:32px}.welcome-card p{max-width:300px;font-size:14px;line-height:1.6}.welcome-art{right:-45px;top:7px;transform:scale(.48);transform-origin:top right;opacity:.7}.welcome-copy{max-width:100%}.welcome-copy .eyebrow{font-size:9px}.welcome-card .button{position:relative;z-index:2}.latest-section{margin-top:29px}.section-heading{align-items:center;margin-bottom:14px}.section-heading h1,.section-heading h2{font-size:22px}.section-heading p{max-width:245px;font-size:12px;line-height:1.5}.section-heading .eyebrow{font-size:9px}.text-link{font-size:12px}.event-grid,.all-events-grid{grid-template-columns:1fr;gap:10px}.event-card{min-height:0;padding:16px;border-radius:15px}.event-card h3{margin-top:11px;font-size:16px}.event-description{font-size:12px}.event-meta{font-size:11px;padding-top:10px}.all-events-mobile{display:inline-flex;width:100%;margin-top:14px}.section-heading>.text-link{display:none}.activities-main{min-height:calc(100vh - 150px)}.back-link{margin-bottom:18px}.count-pill{padding:7px 10px;font-size:11px}.home-footer{font-size:11px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition-duration:.01ms!important}}
.home-bottom-nav{display:none}
@media(max-width:600px){body{padding-bottom:calc(67px + env(safe-area-inset-bottom))}.home-bottom-nav{position:fixed;z-index:30;inset:auto 0 0;height:calc(66px + env(safe-area-inset-bottom));padding:4px 8px env(safe-area-inset-bottom);display:grid;grid-template-columns:repeat(4,minmax(0,1fr));background:#fff;border-top:1px solid var(--line);box-shadow:0 -5px 20px #18314a12}.home-bottom-nav a{display:flex;min-width:0;flex-direction:column;align-items:center;justify-content:center;gap:4px;border-radius:11px;color:#72827b;font-size:11px;font-weight:600}.home-bottom-nav a span{font-size:20px;line-height:1}.home-bottom-nav a.is-current{background:#e8f6f0;color:var(--teal)}.home-bottom-nav a.nav-login{color:var(--teal);font-weight:800}}
.staff-welcome-main{margin-top:26px}.staff-hero{position:relative;min-height:250px;overflow:hidden;display:flex;align-items:center;padding:38px 44px;border-radius:24px;background:linear-gradient(115deg,#153f3a,#087d68);color:#fff;box-shadow:var(--shadow)}.staff-hero-copy{position:relative;z-index:1;max-width:740px}.staff-hero .eyebrow{color:#a9eed7}.staff-hero h1{margin:10px 0 8px;font-size:clamp(30px,4vw,42px);line-height:1.3}.staff-hero p{max-width:660px;margin:0 0 22px;color:#d5eee7;line-height:1.7}.staff-hero .button-primary{min-height:50px;background:#fff;color:#126d5c;font-size:16px}.staff-hero-mark{position:absolute;right:8%;top:50%;display:grid;place-items:center;width:138px;height:138px;border:1px solid #ffffff40;border-radius:38px;background:#ffffff18;color:#c7ffea;font-size:78px;transform:translateY(-50%) rotate(-8deg)}.staff-events{margin-top:34px}.staff-events .section-heading h2{font-size:24px}.staff-flash{margin:0 0 16px;padding:13px 16px;border:1px solid #cde9db;border-radius:12px;background:#effaf4;color:#176d52}.staff-empty{min-height:245px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px;border:1px dashed #cfddd5;border-radius:18px;background:#fff;text-align:center}.staff-empty>span{display:grid;place-items:center;width:48px;height:48px;border-radius:16px;background:var(--mint);color:var(--teal);font-size:28px}.staff-empty strong{margin-top:12px;font-size:18px}.staff-empty p{margin:5px 0 17px;color:var(--muted);font-size:14px}.staff-modal{width:min(520px,calc(100% - 28px));max-height:calc(100dvh - 28px);overflow:auto;border:0;border-radius:20px;padding:0;color:var(--ink);box-shadow:0 18px 60px #17243a35}.staff-modal::backdrop{background:#14253bc2;backdrop-filter:blur(3px)}.staff-modal form{padding:24px}.staff-modal-heading{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:12px}.staff-modal-heading h2{margin:4px 0 0;font-size:24px}.staff-modal label{display:grid;gap:7px;margin:13px 0;color:#55647b;font-size:14px;font-weight:600}.staff-modal input,.staff-modal textarea{width:100%;min-height:46px;border:1px solid var(--line);border-radius:10px;padding:10px 12px;outline:none;color:var(--ink);font:inherit;font-size:16px}.staff-modal input:focus,.staff-modal textarea:focus{border-color:#6bcab3;box-shadow:0 0 0 3px #13a88a14}.staff-modal textarea{resize:vertical}.staff-form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.staff-modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:20px}.home-bottom-nav form{margin:0;display:grid;place-items:stretch}.home-bottom-nav button{display:flex;min-width:0;flex-direction:column;align-items:center;justify-content:center;gap:4px;border:0;border-radius:11px;background:transparent;color:#72827b;font:600 11px 'K2D',Tahoma,sans-serif}.home-bottom-nav button span{font-size:20px;line-height:1}
@media(max-width:600px){.staff-welcome-main{margin-top:16px}.staff-hero{min-height:0;padding:27px 22px;border-radius:20px}.staff-hero h1{max-width:270px;font-size:29px}.staff-hero p{max-width:330px;font-size:14px;line-height:1.65}.staff-hero-mark{right:-35px;top:18px;width:112px;height:112px;border-radius:30px;font-size:62px;transform:rotate(-8deg);opacity:.7}.staff-events{margin-top:27px}.staff-events .section-heading{align-items:flex-end}.staff-events .section-heading h2{font-size:20px}.staff-events .section-heading p{max-width:255px}.staff-empty{min-height:225px;padding:20px}.staff-empty p{max-width:280px;line-height:1.6}.staff-modal form{padding:19px}.staff-modal-heading h2{font-size:21px}.staff-form-row{gap:9px}.staff-modal-actions .button{flex:1;padding:0 10px}}

/* UX/UI refresh: public activity discovery */
:root{--ink:#173b36;--muted:#6c827b;--line:#dfeae5;--bg:#f2f7f4;--teal:#087d68;--mint:#e4f5ee;--shadow:0 16px 42px rgba(20,65,54,.08)}
body{background:var(--bg);color:var(--ink)}
.home-header{height:80px;border-bottom-color:#e1ece7;box-shadow:0 3px 18px rgba(20,65,54,.04);position:sticky;top:0;z-index:20}.home-brand strong{font-size:17px}.home-brand small{font-size:12px;color:#769088}.brand-mark{width:44px;height:44px;border-radius:15px;box-shadow:0 9px 20px rgba(8,125,104,.18)}.home-actions{gap:12px}.button{min-height:46px;border-radius:12px}.button-outline{border-color:#d6e4de}.button-primary{box-shadow:0 10px 20px rgba(8,125,104,.2)}
.role-switcher-form{margin:0}.role-switcher-form select{min-height:40px;max-width:190px;padding:8px 28px 8px 11px;border:1px solid #bfe4d7;border-radius:10px;background:#e8f7f1;color:#087d68;font:700 13px 'K2D',Tahoma,sans-serif;cursor:pointer}.role-switcher-form select:focus{outline:2px solid #8edbc6;outline-offset:2px}
@media(max-width:600px){.home-header{height:auto!important;min-height:64px;flex-wrap:wrap;gap:8px;padding:10px 14px}.home-brand{flex:1 1 100%;min-width:0}.home-actions{width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px}.home-actions .signed-user{display:none}.role-switcher-form{min-width:0}.role-switcher-form select{width:100%;max-width:none}.home-actions>form:last-child,.home-actions>form:last-child .button{width:auto}.home-actions .button{min-height:40px;padding:0 11px;font-size:12px}}
.home-main{margin-top:42px}.welcome-card{min-height:330px;padding:52px 62px;border-radius:28px;background:linear-gradient(120deg,#123f3a 0%,#0c7465 68%,#2aa684 100%);box-shadow:0 22px 42px rgba(20,65,54,.15)}.welcome-card h1{font-size:clamp(34px,4vw,52px)}.welcome-card p{font-size:17px;line-height:1.65}.welcome-card .button-primary{min-height:50px;font-size:15px}.latest-section{margin-top:46px}.section-heading{margin-bottom:21px}.section-heading h1,.section-heading h2{font-size:30px}.section-heading p{font-size:15px}.event-grid{gap:18px}.event-card{min-height:220px;padding:22px;border-radius:19px;box-shadow:0 6px 20px rgba(20,65,54,.045)}.event-card h3{font-size:19px}.event-meta{font-size:13px}.event-open-link{font-size:14px}.count-pill{padding:10px 14px;font-size:14px}
@media(max-width:600px){.home-header{height:68px}.home-main{margin-top:20px}.welcome-card{padding:30px 24px 27px;border-radius:22px}.welcome-card h1{font-size:33px;line-height:1.25}.welcome-card p{font-size:14px}.welcome-card .button-primary{min-height:46px;font-size:14px}.latest-section{margin-top:31px}.section-heading h1,.section-heading h2{font-size:23px}.section-heading p{font-size:13px}.event-card{border-radius:16px;padding:17px}.event-card h3{font-size:17px}}

/* Compact home: one clear action, then the latest activities */
.home-main{margin-top:28px;margin-bottom:46px}.welcome-card{min-height:240px;padding:30px 42px;border-radius:24px}.welcome-card h1{font-size:clamp(34px,4vw,42px);line-height:1.16;margin:8px 0 8px}.welcome-card p{margin-bottom:16px;font-size:15px}.welcome-card .button-primary{min-height:46px;font-size:14px}.domain-note{margin-top:8px;font-size:12px}.welcome-art{width:155px;height:155px;right:12%}.art-check{width:88px;height:88px;font-size:44px}.latest-section{margin-top:30px}.section-heading{margin-bottom:14px}.section-heading h1,.section-heading h2{font-size:25px;margin:0}.text-link{font-size:13px}.event-grid{gap:12px}.event-card{min-height:180px;padding:18px 19px}.event-card h3{margin:11px 0 5px;font-size:17px}.event-description{font-size:12px}.event-meta{font-size:12px;padding-top:9px}.home-footer{padding-bottom:20px}
@media(max-width:600px){.home-header{height:64px}.home-brand strong{font-size:13px}.home-brand small{font-size:10px}.home-main{margin-top:16px;margin-bottom:34px}.welcome-card{padding:26px 22px 24px;border-radius:20px}.welcome-card h1{font-size:30px;line-height:1.22;margin-top:8px}.welcome-card p{font-size:14px;margin-bottom:16px}.welcome-card .button-primary{min-height:44px}.welcome-art{right:-36px;top:7px;width:165px;height:165px;transform:scale(.55);opacity:.65}.latest-section{margin-top:25px}.section-heading h1,.section-heading h2{font-size:22px}.event-card{min-height:0;padding:16px}.event-card h3{font-size:16px}.event-meta{font-size:11px}.home-footer{font-size:11px}}

.brand-logo { width: 44px; height: 44px; display: block; flex: 0 0 44px; }
@media(max-width:600px){.brand-logo{width:38px;height:38px;flex-basis:38px}}
.activity-join-pending,.activity-join-confirmed{margin-top:12px;padding:8px 10px;border-radius:9px;font-size:12px;font-weight:700}
.activity-join-pending{background:#fff7e6;color:#a56b13}
.activity-join-confirmed{background:#e8f7f1;color:var(--teal)}
.activity-join-form{margin:0}
.activity-join-button{width:100%;min-height:46px;margin-top:12px;justify-content:center;text-align:center}
.activity-join-button:hover{background:#076c5b}
@media(max-width:600px){.activity-join-button{min-height:44px;font-size:14px}}
.thai-date-picker{position:relative}.thai-date-input-row{display:flex;gap:7px}.thai-date-input-row input{flex:1;min-width:0}.thai-date-input-row button{flex:0 0 46px;border:1px solid var(--line);border-radius:10px;background:#f4faf7;color:var(--teal);font-size:20px}.thai-date-calendar{position:absolute;z-index:50;top:calc(100% + 7px);left:0;width:min(330px,calc(100vw - 62px));padding:12px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:0 14px 34px #18314a20}.thai-date-calendar[hidden]{display:none}.thai-calendar-controls{display:grid;grid-template-columns:34px 1fr 88px 34px;gap:5px;align-items:center;margin-bottom:9px}.thai-calendar-controls button{height:34px;border:0;border-radius:8px;background:var(--mint);color:var(--teal);font-size:21px}.thai-calendar-controls select{min-width:0;height:34px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);font:500 13px 'K2D',Tahoma,sans-serif;padding:0 5px}.thai-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;text-align:center}.thai-calendar-weekday{padding:5px 0;color:var(--muted);font-size:11px;font-weight:700}.thai-calendar-day{height:36px;border:0;border-radius:9px;background:#fff;color:var(--ink);font:500 13px 'K2D',Tahoma,sans-serif}.thai-calendar-day:hover{background:var(--mint)}.thai-calendar-day.is-today{box-shadow:inset 0 0 0 1px var(--teal);color:var(--teal)}.thai-calendar-day.is-selected{background:var(--teal);color:#fff}
