/* Home activity uses the Home-only light palette and an inline calendar. */
.tosaa-home-activity{display:grid;gap:32px;margin:42px auto 0;max-width:620px;color:#26332f}.tosaa-ha-section{min-width:0}.tosaa-ha-section h2{margin:0 0 13px;font-size:19px;line-height:1.4;font-weight:650;letter-spacing:-.02em}.tosaa-ha-section ul{list-style:none;margin:0;padding:0;border-top:1px solid #e2e9e3}.tosaa-ha-section li{border-bottom:1px solid #e2e9e3}.tosaa-ha-row{display:flex;align-items:center;gap:14px;width:100%;min-height:66px;padding:12px 4px;text-align:left;background:none;border:0;color:inherit;font:inherit;cursor:pointer}.tosaa-ha-row:hover{background:#eaf5ef}.tosaa-ha-row:focus-visible,.tosaa-ha-toggle:focus-visible,.tosaa-ha-month button:focus-visible,.tosaa-ha-day:focus-visible{outline:2px solid #27745e;outline-offset:2px;border-radius:6px}.tosaa-ha-main{display:flex;flex:1;flex-direction:column;gap:3px;min-width:0}.tosaa-ha-main strong{font-size:14px;font-weight:600;line-height:1.45;overflow-wrap:anywhere}.tosaa-ha-main small{font-size:12px;line-height:1.45;color:#53635c;overflow-wrap:anywhere}.tosaa-ha-meta{display:flex;flex-direction:column;align-items:flex-end;gap:4px;text-align:right;flex-shrink:0;max-width:35%}.tosaa-ha-meta em{font-size:11px;font-style:normal;font-weight:600;color:#27614f;overflow-wrap:anywhere}.tosaa-ha-meta time,.tosaa-ha-date-status{font-size:11px;color:#53635c}.tosaa-ha-empty{margin:0;padding:18px 16px;background:#f1f6f1;border-radius:12px;color:#526258;font-size:13px;line-height:1.55}.tosaa-ha-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.tosaa-ha-toggle{display:inline-flex;align-items:center;gap:6px;flex-shrink:0;min-height:44px;padding:7px 0 7px 8px;border:0;background:none;color:#236451;font:inherit;font-size:12px;font-weight:600;cursor:pointer}.tosaa-ha-toggle svg{width:17px;height:17px}.tosaa-ha-date-box{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:none;width:42px;height:44px;border-radius:10px;background:#e5f2eb;color:#265b4b}.tosaa-ha-date-box b{font-size:17px;line-height:1;font-variant-numeric:tabular-nums}.tosaa-ha-date-box span{margin-top:3px;font-size:10px;line-height:1.2}.tosaa-ha-date-status{text-align:right;max-width:30%;overflow-wrap:anywhere}.tosaa-ha-calendar{margin-top:16px;padding:16px;background:#f4f8f4;border:1px solid #e3ece4;border-radius:16px}.tosaa-ha-month{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:13px}.tosaa-ha-month h3{margin:0;font-size:15px;line-height:1.5;font-weight:600}.tosaa-ha-month button{display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:9px;background:#fff;color:#315e4d;cursor:pointer}.tosaa-ha-month button:hover{background:#e3f0e8}.tosaa-ha-month svg{width:17px;height:17px}.tosaa-ha-weekdays,.tosaa-ha-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;text-align:center}.tosaa-ha-weekdays{margin-bottom:4px;color:#586960;font-size:11px}.tosaa-ha-weekdays span{padding:5px 0}.tosaa-ha-day,.tosaa-ha-blank{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0;min-height:44px;border:1px solid transparent;border-radius:9px;background:none;color:#26332f;font:inherit;font-size:12px;font-variant-numeric:tabular-nums}.tosaa-ha-day{cursor:pointer}.tosaa-ha-day:hover{background:#e7f1e9}.tosaa-ha-day.is-today{border-color:#9db6a5}.tosaa-ha-day.is-selected{background:#286d57;color:#fff;border-color:#286d57}.tosaa-ha-day i{width:4px;height:4px;border-radius:50%;background:#a76145}.tosaa-ha-day.is-selected i{background:#fff}.tosaa-ha-agenda{margin-top:16px;padding-top:14px;border-top:1px solid #dce8dd}.tosaa-ha-agenda h4{margin:0 0 8px;font-size:13px;font-weight:600}.tosaa-ha-agenda p{margin:0;color:#526258;font-size:12px}.tosaa-ha-agenda ul{border-top:0}.tosaa-ha-agenda .tosaa-ha-row{min-height:58px}@media(max-width:600px){.tosaa-home-activity{gap:27px;margin-top:34px}.tosaa-ha-section h2{font-size:17px}.tosaa-ha-row{min-height:62px}.tosaa-ha-calendar{padding:12px}}@media(prefers-reduced-motion:reduce){.tosaa-ha-row,.tosaa-ha-day{scroll-behavior:auto}}

/* UI05 completion: compact read-only work summaries; accepted Home palette retained. */
.tosaa-ha-entry-icon{display:grid;place-items:center;flex:none;width:38px;height:42px;color:#386c59;background:#e7f1e9;border-radius:11px}.tosaa-ha-entry-icon svg{width:21px;height:21px}.tosaa-ha-meta>svg{width:15px;height:15px;color:#718779}.tosaa-home .tosaa-ha-intro{margin:-5px 0 14px;color:#637268;font-size:12px;line-height:1.55}.tosaa-ha-date.is-cancelled .tosaa-ha-date-box{background:#edeceb;color:#6d6a67}.tosaa-ha-date.is-cancelled .tosaa-ha-date-status{color:#8a4f4b}

/* Home highlights share one compact surface; the existing menu editor owns visibility. */
.tosaa-ha-featured>.tosaa-ha-heading{margin-bottom:12px}.tosaa-ha-featured>.tosaa-ha-heading h2{margin:0}.tosaa-ha-tabs{display:flex;gap:4px;border-bottom:1px solid #cfdacd;margin-bottom:16px}.tosaa-ha-tabs [role=tab]{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:0;min-height:66px;padding:8px 5px 10px;border:0;border-bottom:3px solid transparent;background:none;color:#53635c;font:inherit;font-size:12px;line-height:1.35;font-weight:600;cursor:pointer}.tosaa-ha-tabs [role=tab] svg{width:21px;height:21px;flex:none}.tosaa-ha-tabs [aria-selected=true]{border-bottom-color:#34715a;color:#245440;background:#eaf0e5;border-radius:10px 10px 0 0}.tosaa-ha-tabs [role=tab]:hover{background:#e5ecdf}.tosaa-ha-tabs [role=tab]:focus-visible,.tosaa-ha-featured-panel:focus-visible,.tosaa-ha-poster:focus-visible{outline:2px solid #27745e;outline-offset:2px}.tosaa-ha-featured-panel{min-width:0;border-radius:4px}.tosaa-ha-section .tosaa-ha-poster-rail{display:flex;gap:14px;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x proximity;padding:3px 3px 13px;border:0;scrollbar-width:thin;scrollbar-color:#829b81 #e9eadf}.tosaa-ha-poster-rail>li{flex:0 0 176px;min-width:0;border:0;scroll-snap-align:start}.tosaa-ha-poster{display:block;width:100%;padding:0;text-align:left;border:0;background:none;color:inherit;font:inherit;cursor:pointer;border-radius:12px}.tosaa-ha-poster-art{position:relative;display:block;aspect-ratio:4/5;border-radius:12px;overflow:hidden;background:#dfe7da}.tosaa-ha-poster-art>img{display:block;width:100%;height:100%;object-fit:cover}.tosaa-ha-poster-copy{display:flex;flex-direction:column;gap:5px;padding:10px 2px 0}.tosaa-ha-poster-copy strong{font-size:14px;font-weight:650;line-height:1.45;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.tosaa-ha-poster-copy small{font-size:11px;line-height:1.5;color:#53635c;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden}.tosaa-ha-poster-date{position:absolute;top:10px;left:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:46px;min-height:54px;padding:5px 8px;border-radius:8px;background:#faf5df;color:#36583b;box-shadow:0 3px 12px #1f322026}.tosaa-ha-poster-date b{font-size:21px;line-height:1.1;font-variant-numeric:tabular-nums}.tosaa-ha-poster-date span{font-size:10px;line-height:1.5}.tosaa-ha-poster-reward{position:absolute;bottom:10px;left:10px;max-width:calc(100% - 20px);display:flex;align-items:center;gap:5px;padding:6px 9px;border-radius:6px;background:#f2e4b4;color:#594b23;font-size:11px;font-weight:650;line-height:1.4}.tosaa-ha-poster-reward svg{width:15px;height:15px;flex:none}.tosaa-ha-poster:hover .tosaa-ha-poster-copy strong{color:#27745e;text-decoration:underline;text-underline-offset:3px}.tosaa-ha-featured-panel .tosaa-ha-intro{margin:0 0 14px}.tosaa-ha-featured ::selection{background:#d6e2b7;color:#203c2d}@media(min-width:700px){.tosaa-ha-poster-rail>li{flex-basis:188px}.tosaa-ha-tabs [role=tab]{flex-direction:row;gap:8px;min-height:52px}}@media(max-width:350px){.tosaa-ha-tabs [role=tab]{font-size:11px;padding-inline:2px}.tosaa-ha-poster-rail>li{flex-basis:162px}}

.tosaa-ha-recommendation-intro{display:flex;align-items:center;gap:12px;margin-bottom:10px}.tosaa-home .tosaa-ha-recommendation-intro .tosaa-ha-intro{flex:1;min-width:0;margin:0}.tosaa-ha-recommendation-refresh{display:grid;place-items:center;flex:none;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:transparent;color:#386c59;cursor:pointer}.tosaa-ha-recommendation-refresh svg{width:20px;height:20px}.tosaa-ha-recommendation-refresh:hover{background:#e5ecdf}.tosaa-ha-recommendation-refresh:focus-visible{outline:2px solid #27745e;outline-offset:2px}

/* Clickable month/year text, aligned with the calendar chevrons. */
.tosaa-ha-month-picker{display:flex;align-items:center;justify-content:center;gap:4px;min-width:0;flex:1}
.tosaa-ha-month-picker label{position:relative;display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:44px;margin:0;padding:0 3px;border:0;border-radius:4px;cursor:pointer;color:inherit;font-size:16px;font-weight:600;line-height:1.4;white-space:nowrap}
.tosaa-ha-month-picker select{position:absolute;inset:0;width:100%;height:100%;min-height:44px;opacity:0;cursor:pointer;font:inherit}
.tosaa-ha-month-picker label:hover{background:color-mix(in srgb,currentColor 7%,transparent)}
.tosaa-ha-month-picker label:has(select:focus-visible){outline:2px solid currentColor;outline-offset:2px}
.tosaa-ha-month{display:flex;align-items:center;justify-content:space-between;gap:4px}
.tosaa-ha-month>button{flex:0 0 44px;width:44px;min-width:44px;height:44px;min-height:44px;margin:0 -4px;padding:0;border:0;border-radius:4px;background:transparent;color:inherit;box-shadow:none;display:grid;place-items:center}
.tosaa-ha-month>button svg{width:20px;height:20px}
/* Owner 1 Nov 2026 (QA S-56): an ended featured event reads "จบแล้ว" in place of its points badge. */
.tosaa-ha-poster-reward.tosaa-ha-poster-ended{background:#3d4540;color:#f4f1e6}
