@charset "UTF-8";
:root{--orange:#e64b13;--orange-dark:#b93808;--orange-soft:#fff1e8;--ink:#252b32;--muted:#73777c;--line:#eae8e4;--paper:#fff;--bg:#faf9f6;--green:#247a61;--blue:#3c6fad;--shadow:0 5px 20px #35291105;font-family:"Noto Sans Thai","Thonburi",Tahoma,system-ui,sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;font-size:14px;line-height:1.65}button,input,select,textarea{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}a{color:inherit;text-decoration:none}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #f39856;outline-offset:3px}button{border:0;background:none;color:inherit}h1,h2,h3,p{margin:0}h1{font-size:clamp(26px,2.6vw,36px);letter-spacing:-1px;line-height:1.4}h2{font-size:21px;letter-spacing:-.4px}h3{font-size:17px}small,.small{font-size:12px}.muted{color:var(--muted)}.orange{color:var(--orange)}.icon{width:21px;height:21px;display:inline-block;vertical-align:middle;flex:none}.brand{display:flex;align-items:center;gap:11px}.brand img{width:43px;height:43px}.brand strong{font-size:22px;line-height:1.1;letter-spacing:1px}.brand small{display:block;color:var(--muted);font-size:10px;letter-spacing:2.4px}.sidebar{width:244px;background:white;border-right:1px solid var(--line);position:fixed;inset:0 auto 0 0;padding:30px 22px 20px;display:flex;flex-direction:column;z-index:15}.sidebar .brand{padding:0 9px 30px}.nav-label{font-size:10px;letter-spacing:1.8px;color:#92918c;margin:21px 13px 10px}.nav{display:flex;flex-direction:column;gap:5px}.nav a{display:flex;align-items:center;gap:13px;padding:12px 15px;border-radius:11px;font-weight:500;color:#64666a}.nav a:hover{background:#faf8f5}.nav a.active{background:var(--orange-soft);color:var(--orange);font-weight:700}.nav a.active:after{content:"";width:6px;height:6px;border-radius:50%;background:var(--orange);margin-left:auto}.nav a.primary-nav{background:var(--orange);color:white;margin:13px 0}.sidebar-bottom{margin-top:auto}.sidebar-note{background:var(--bg);padding:17px;border-radius:15px;margin:24px 2px 16px}.sidebar-note .icon{color:var(--orange);margin-bottom:8px}.sidebar-note p{font-size:12px;color:var(--muted);margin-top:6px}.logout{color:var(--muted);display:flex;align-items:center;gap:12px;padding:10px}.workspace{margin-left:244px}.topbar{height:86px;background:#ffffffd9;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:18px;padding:0 38px}.crumb{display:flex;align-items:center;gap:10px;font-size:12px;color:var(--muted)}.top-right{display:flex;align-items:center;gap:19px}.timezone{font-size:11px;color:var(--muted);border-right:1px solid var(--line);padding-right:20px}.profile{display:flex;align-items:center;gap:10px;text-align:left}.avatar{display:grid;place-items:center;background:#ffead8;color:#ab4c20;width:38px;height:38px;border-radius:50%;font-weight:700;flex-shrink:0}.avatar.small{width:32px;height:32px;font-size:12px}.profile strong{font-size:13px;display:block;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile small{font-size:10px;color:var(--muted)}.content{max-width:1460px;margin:auto;padding:32px 38px 48px}.eyebrow{font-size:10px;letter-spacing:2.1px;font-weight:700;color:var(--orange);margin-bottom:9px}.page-heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:25px}.page-heading p{color:var(--muted);margin-top:5px;font-size:13px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 18px;border-radius:10px;border:1px solid var(--line);background:#fff;font-weight:600;white-space:nowrap;font-size:13px}.btn.primary{background:var(--orange);border-color:var(--orange);color:white;box-shadow:0 4px 9px #e64b1318}.btn.primary:hover{background:var(--orange-dark)}.btn.subtle{color:var(--muted);background:var(--bg)}.btn.danger{color:#b22621;border-color:#f2d0cc}.btn.compact{min-height:38px;padding:7px 12px;font-size:12px}.btn.wide{width:100%}.hero{background:#fff0e3;border:1px solid #ffe5ce;border-radius:19px;padding:26px 30px;display:flex;align-items:center;justify-content:space-between;overflow:hidden;position:relative;margin-bottom:24px;min-height:172px}.hero h2{font-size:26px;line-height:1.5;max-width:550px}.hero p{color:#947154;font-size:13px;margin-top:9px;max-width:550px}.hero-art{position:relative;width:220px;height:126px;flex-shrink:0;margin-left:20px}.orb{position:absolute;width:136px;height:136px;border:1px solid #f6c7a1;border-radius:50%;right:10px;top:-5px;background:#ffe4cd}.floating-link{position:absolute;right:46px;top:17px;width:88px;height:88px;background:var(--orange);color:white;border-radius:24px;transform:rotate(-12deg);box-shadow:7px 9px 0 #ebc5a03b;display:grid;place-items:center}.floating-link .icon{width:44px;height:44px}.mini-note{position:absolute;top:82px;left:-10px;background:white;border-radius:10px;padding:8px 15px;box-shadow:0 5px 15px #b7875620;font-size:11px;transform:rotate(5deg)}.mini-dot{width:7px;height:7px;background:#67aa7c;display:inline-block;border-radius:50%;margin-right:7px}.spark{position:absolute;color:#db965b;right:6px;top:0;font-size:30px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:28px}.stat{background:white;border:1px solid var(--line);border-radius:14px;padding:19px 20px;box-shadow:var(--shadow)}.stat-top{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:12px;color:var(--muted)}.stat-icon{height:34px;width:34px;border-radius:10px;display:grid;place-items:center;color:var(--orange);background:var(--orange-soft)}.stat:nth-child(2) .stat-icon{color:var(--blue);background:#edf3fd}.stat:nth-child(3) .stat-icon{color:var(--green);background:#ecf6f0}.stat:nth-child(4) .stat-icon{color:#a27a2e;background:#faf3e3}.stat strong{font-size:32px;display:block;line-height:1.25;margin:13px 0 4px;font-weight:650;letter-spacing:-1px}.stat small{color:#989793;font-size:10px}.section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px;gap:10px}.section-heading h2{font-size:20px}.section-heading a{font-size:12px;color:var(--orange);font-weight:600}.filters{display:flex;align-items:center;gap:12px;padding:15px;background:#fff;border:1px solid var(--line);border-radius:13px;margin-bottom:20px;flex-wrap:wrap}.search{display:flex;align-items:center;gap:9px;flex:1;min-width:200px;border:1px solid var(--line);border-radius:9px;padding:0 12px;background:#fff}.search input{border:0;outline:none;width:100%;padding:10px 0;min-width:0}.search .icon{color:#aaa}.filters select{max-width:100%;background:#fff;border:1px solid var(--line);padding:10px;border-radius:9px;font-size:12px;min-height:44px}.post-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.post-card{background:white;border:1px solid var(--line);border-radius:15px;padding:20px;box-shadow:var(--shadow);display:flex;flex-direction:column;min-width:0}.post-meta{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:18px}.author{display:flex;align-items:center;gap:9px;min-width:0}.author strong{display:block;font-size:12px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:140px}.author small{color:#919191;font-size:10px}.platform{padding:4px 8px;border-radius:6px;font-size:10px;font-weight:600;white-space:nowrap;background:#fff1e9;color:#cd5a2a}.platform.facebook{background:#edf3fc;color:#4b72b0}.post-card h3{font-size:16px;font-weight:650;line-height:1.65;margin-bottom:7px;overflow-wrap:anywhere}.post-desc{color:var(--muted);font-size:12px;line-height:1.8;min-height:43px;white-space:pre-wrap;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.link-preview{background:#f9f8f5;padding:12px;border-radius:9px;margin:15px 0;font-size:11px;display:flex;align-items:center;gap:9px;color:#8a8986;overflow:hidden}.link-preview span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.post-state{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:auto 0 13px;font-size:10px;color:var(--muted)}.recorded{color:var(--green)}.post-actions{display:flex;gap:8px;flex-wrap:wrap}.post-actions .open-btn{flex:1}.post-manage{display:flex;align-items:center;gap:10px;margin-top:12px;padding-top:12px;border-top:1px solid var(--line);flex-wrap:wrap}.text-btn{font-size:11px;color:var(--muted);padding:5px 0;min-height:32px}.text-btn.emphasis{color:var(--orange);font-weight:600}.notice{border:1px solid #eee4d2;background:#fffaf0;padding:14px 18px;border-radius:11px;color:#8b784c;font-size:12px;display:flex;gap:10px;margin-bottom:22px;align-items:flex-start;overflow-wrap:anywhere}.notice.green{background:#f0f8f4;color:#3d715b;border-color:#dfeee5}.notice.neutral{background:#f4f5f6;color:#696f77;border-color:#e7e9eb}.notice p{white-space:pre-wrap}.footnote{color:#99958f;font-size:10px;text-align:center;margin-top:28px}.empty{grid-column:1/-1;border:1px dashed #e1ddd7;border-radius:15px;padding:52px 22px;text-align:center;color:var(--muted);background:#fff}.empty .icon{width:36px;height:36px;color:#ddb995;margin-bottom:12px}.empty h3{color:var(--ink);margin-bottom:6px}.empty .btn{margin-top:18px}.pagination{display:flex;justify-content:center;align-items:center;gap:18px;padding-top:24px;font-size:12px;color:var(--muted)}.panel{background:white;border:1px solid var(--line);border-radius:16px;padding:26px;margin-bottom:20px}.form-panel{max-width:760px}.field{margin-bottom:19px}.field label{display:block;font-size:13px;font-weight:600;margin-bottom:7px}.field input,.field select,.field textarea{display:block;width:100%;padding:12px 14px;border:1px solid #dfdedb;border-radius:10px;background:white;color:var(--ink);min-height:47px}.field textarea{min-height:115px;resize:vertical}.field small{display:block;color:var(--muted);margin-top:6px;font-size:11px}.form-actions{display:flex;gap:10px;align-items:center;margin-top:23px}.form-actions .btn{min-width:120px}.form-error{color:#b22c24;background:#fff1f0;border:1px solid #f9d8d5;border-radius:9px;padding:11px 14px;margin:14px 0;font-size:12px}.form-error:empty{display:none}.two-columns{display:grid;grid-template-columns:1fr 1fr;gap:24px}.badge{border-radius:6px;background:#f1f2f2;color:#6b7075;font-size:10px;padding:3px 7px;display:inline-block}.badge.active{color:#267353;background:#edf7f0}.badge.hidden{color:#a44638;background:#fff0ec}.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:12px}table{border-collapse:collapse;width:100%;font-size:12px;background:#fff}thead{background:#f8f8f6;color:var(--muted);text-align:left;font-weight:500}th,td{padding:14px 17px;border-bottom:1px solid #efeeeb;white-space:nowrap}tbody tr:last-child td{border-bottom:0}td .btn{font-size:11px}.tab-row{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}.tab-row .btn.selected{background:var(--orange-soft);border-color:#f5cab6;color:var(--orange)}.install-panel ol{padding-left:23px}.install-panel li{padding:5px 0}.mobile-nav,.mobile-logo{display:none}.login-page{min-height:100dvh;display:grid;grid-template-columns:1.05fr 1fr}.login-story{background:#fff0e3;padding:55px 65px;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.login-story h1{font-size:clamp(32px,3.6vw,52px);font-weight:650;max-width:500px;line-height:1.5;margin-top:25px}.login-story p{color:#92775e;font-size:14px;margin-top:20px;max-width:400px}.login-illustration{height:220px;position:relative;margin:30px 0}.login-illustration .floating-link{width:140px;height:140px;top:30px;left:100px;border-radius:33px}.login-illustration .floating-link .icon{width:75px;height:75px}.login-illustration .mini-note{top:160px;left:155px;padding:15px 22px}.login-story footer{color:#a68f79;font-size:11px}.login-form-wrap{display:flex;align-items:center;justify-content:center;padding:50px 35px;background:white}.login-form{width:100%;max-width:380px}.login-form h2{font-size:28px;margin-bottom:9px}.login-form>p{color:var(--muted);margin-bottom:30px;font-size:13px}.login-form .btn{margin-top:10px}.login-form footer{margin-top:24px;text-align:center;color:var(--muted);font-size:11px}.login-form .brand{display:none}.boot{min-height:80vh;display:grid;place-items:center;color:var(--muted)}#toast{position:fixed;bottom:28px;left:50%;transform:translate(-50%,20px);background:#263e35;color:white;padding:12px 22px;border-radius:11px;box-shadow:0 8px 24px #0002;font-size:13px;z-index:100;opacity:0;pointer-events:none;transition:.2s;max-width:90vw;text-align:center}#toast.show{opacity:1;transform:translate(-50%,0)}dialog{border:1px solid var(--line);border-radius:18px;max-width:520px;width:calc(100% - 32px);padding:28px;color:var(--ink);box-shadow:0 25px 90px #0002;max-height:90dvh;overflow:auto}dialog::backdrop{background:#1f211c70;backdrop-filter:blur(3px)}dialog h2{margin-bottom:17px}.dialog-head{display:flex;align-items:center;justify-content:space-between}.close-btn{width:36px;height:36px;border-radius:50%;background:#f7f5f1;display:grid;place-items:center}.skip{position:fixed;top:-100px;left:10px;background:white;padding:10px;z-index:200}.skip:focus{top:10px}
@media(min-width:1600px){.content{padding-top:42px}.post-card{padding:25px}.hero{min-height:190px}}
@media(max-width:1190px){.sidebar{width:214px;padding:25px 14px}.workspace{margin-left:214px}.content{padding:26px}.topbar{padding:0 26px}.post-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stats{gap:12px}.stat{padding:16px}.stat-top{font-size:11px}.timezone{display:none}.hero-art{width:160px}.hero h2{font-size:23px}}
@media(max-width:850px) and (min-width:701px){.sidebar{width:182px;padding:24px 10px}.sidebar .brand{padding-left:8px;gap:8px}.brand strong{font-size:19px}.brand img{width:36px;height:36px}.nav a{font-size:12px;gap:9px;padding:12px}.workspace{margin-left:182px}.content{padding:24px 20px}.topbar{padding:0 20px;height:75px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.hero{padding:22px}.hero-art{display:none}.post-grid{gap:12px}.post-card{padding:15px}.post-meta{flex-wrap:wrap;gap:8px}.two-columns{grid-template-columns:1fr}}
@media(max-width:700px){body{font-size:13px}.sidebar{display:none}.workspace{margin-left:0}.topbar{height:71px;padding:0 20px;padding-top:env(safe-area-inset-top)}.crumb{display:none}.mobile-logo{display:flex}.mobile-logo .brand img{width:34px;height:34px}.mobile-logo .brand strong{font-size:20px}.mobile-logo .brand small{font-size:8px}.profile .profile-text{display:none}.avatar{width:34px;height:34px}.top-right{gap:8px}.content{padding:24px 18px calc(105px + env(safe-area-inset-bottom))}.page-heading{align-items:flex-start;margin-bottom:21px;gap:12px}.page-heading h1{font-size:26px}.page-heading p{font-size:12px}.page-heading>.btn{padding:10px;min-width:43px;font-size:12px}.hero{padding:22px 20px;border-radius:16px;min-height:154px;margin-bottom:18px}.hero h2{font-size:21px;max-width:240px}.hero p{font-size:11px;max-width:245px}.hero-art{width:80px;margin-left:0;height:100px}.orb{width:95px;height:95px;right:-35px;top:8px}.floating-link{width:60px;height:60px;right:-10px;top:27px;border-radius:17px}.floating-link .icon{width:33px;height:33px}.mini-note{display:none}.spark{right:-8px;font-size:22px}.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:24px}.stat{padding:15px;border-radius:12px}.stat strong{font-size:28px;margin:8px 0 3px}.stat-top{font-size:11px}.stat-icon{width:28px;height:28px;border-radius:8px}.stat-icon .icon{width:17px;height:17px}.stat small{font-size:9px}.section-heading h2{font-size:18px}.filters{padding:12px;gap:8px}.search{flex-basis:100%;min-width:0}.filters select{flex:1;min-width:0;font-size:11px}.filters .btn{padding:9px 12px}.post-grid{grid-template-columns:1fr;gap:14px}.post-card{padding:19px}.post-card h3{font-size:17px}.post-desc{min-height:0}.post-meta{margin-bottom:13px}.link-preview{margin:13px 0}.post-state{margin-bottom:12px}.post-actions .btn{min-height:44px}.mobile-nav{display:flex;justify-content:space-around;position:fixed;bottom:0;left:0;right:0;background:#fffffff5;backdrop-filter:blur(12px);border-top:1px solid var(--line);padding:8px 4px calc(8px + env(safe-area-inset-bottom));z-index:25}.mobile-nav a{display:flex;flex-direction:column;align-items:center;gap:3px;color:#8a8c8f;font-size:9px;min-width:56px;min-height:47px;justify-content:center;border-radius:10px}.mobile-nav a.active{color:var(--orange);background:var(--orange-soft)}.mobile-nav .add-nav{background:var(--orange);color:white;width:46px;min-width:46px;border-radius:13px}.panel{padding:20px}.two-columns{grid-template-columns:1fr;gap:0}.notice{padding:12px 14px;font-size:11px}.footnote{text-align:left;font-size:10px}.login-page{display:block}.login-story{display:none}.login-form-wrap{min-height:100dvh;padding:32px 26px;background:linear-gradient(165deg,#fff1e5,white 40%)}.login-form .brand{display:flex;margin-bottom:50px}.login-form h2{font-size:28px}#toast{bottom:95px;font-size:12px}.form-actions{flex-wrap:wrap}.table-wrap{margin-left:-4px;margin-right:-4px}th,td{padding:12px}.tab-row{gap:6px}.tab-row .btn{font-size:11px;padding:9px 11px}}
.sidebar{overflow-y:auto}.sidebar .brand,.sidebar .nav,.sidebar .nav-label,.sidebar-bottom{flex-shrink:0}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
/* R3.1: explicit group context, responsive without obscuring mobile navigation. */
.group-picker{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--muted);white-space:nowrap}
.group-picker select{border:1px solid var(--line);background:#fff;border-radius:9px;padding:7px 10px;max-width:180px;color:var(--ink);min-height:38px}
@media(max-width:700px){.group-picker{font-size:0}.group-picker select{font-size:12px;max-width:145px;min-height:40px}.top-right{min-width:0}.profile{flex-shrink:0}}

.avatar{overflow:hidden;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.avatar img{width:100%;height:100%;object-fit:cover;display:block}.group-check{display:block;padding:12px;border:1px solid #e7e2dc;border-radius:10px;margin:9px 0;font-weight:600}.group-check input{margin-right:9px;accent-color:#e76b34}.invite-entry[hidden]{display:none}.invite-entry{margin:0 0 16px 15px}

/* R3.1 mobile compact group selector */
#register-form .group-check{
  display:flex;
  align-items:center;
  gap:14px;
  min-height:88px;
  padding:14px 16px;
  border-radius:20px;
  margin:10px 0 8px;
}

#register-form .group-check input[type="checkbox"]{
  width:26px;
  height:26px;
  min-width:26px;
  min-height:26px;
  margin:0;
  flex:0 0 26px;
}

#register-form .group-check{
  font-size:18px;
  line-height:1.25;
  font-weight:700;
}

#register-form .invite-entry{
  margin:4px 0 10px;
}

#register-form .field label{
  margin-bottom:8px;
}

@media (max-width: 640px){
  #register-form .group-check{
    min-height:76px;
    padding:12px 14px;
    gap:12px;
    border-radius:18px;
    font-size:17px;
  }

  #register-form .group-check input[type="checkbox"]{
    width:24px;
    height:24px;
    min-width:24px;
    min-height:24px;
    flex:0 0 24px;
  }

  #register-form .invite-entry{
    margin:2px 0 8px;
  }
}

/* R3.5 compact daily feed - mobile first */
.daily-feed{display:flex;flex-direction:column;background:var(--card,#fff);border:1px solid #eee5dd;border-radius:15px;overflow:hidden;margin-bottom:14px}.daily-row{display:flex;align-items:center;gap:10px;padding:10px 12px;min-height:69px;border-bottom:1px solid #f2eee9}.daily-row:last-child{border-bottom:0}.daily-rank{display:flex;flex:0 0 33px;width:33px;height:33px;align-items:center;justify-content:center;border-radius:9px;background:#f5f4f2;font-weight:700;font-size:14px}.daily-rank.first{background:#fff1d8}.daily-info{flex:1;min-width:0}.daily-name{font-size:13px;font-weight:700;display:flex;align-items:center;gap:6px;min-width:0;flex-wrap:wrap}.daily-name small{color:#8d857d;font-weight:400;font-size:11px}.daily-title{font-size:12px;color:#514940;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:3px}.daily-detail{font-size:11px;color:#91877d;margin-top:2px}.daily-group{font-size:10px;border-radius:6px;padding:2px 5px;background:#f6eae1;color:#a34b1c}.daily-actions{display:flex;gap:4px;flex-direction:column;align-items:stretch}.daily-actions .btn{white-space:nowrap;font-size:12px;padding:7px 10px}.daily-controls{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin:12px 0}.daily-date-form{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:12px}.daily-date-form input{padding:7px;border:1px solid #ddd0c2;border-radius:8px;background:#fff;min-width:130px}.daily-history-link{margin:12px 0 20px}@media(max-width:480px){.daily-row{padding:9px 8px;gap:7px}.daily-name{font-size:12px}.daily-actions .btn{font-size:11px;padding:7px 8px}.daily-date-form label{display:none}.daily-date-form input{min-width:0;max-width:152px}}
