#job165agenda{margin:20px 0;padding:18px;border:1px solid #dde1e5;border-radius:20px;background:#fff;color:#23333f}.job165top,.job165controls{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px;flex-wrap:wrap}.job165top strong{font-size:20px}.job165top button,.job165controls button,.job165media{background:#fac423;border:0;border-radius:10px;padding:10px 14px;color:#1e2934;font-weight:700;cursor:pointer}.job165controls>div{display:flex;gap:5px}.job165controls button{background:#f0f2f3;font-size:13px}.job165controls button.selected{background:#fac423}.job165controls input{padding:8px;border:1px solid #ccd3dc;border-radius:9px}.job165row{display:flex;gap:12px;align-items:flex-start;border-top:1px solid #e6e9ed;padding:12px 0}.job165row time{font-weight:700;min-width:48px}.job165txt{flex:1;min-width:120px}.job165txt strong,.job165txt small{display:block}.job165txt small{color:#687685}.job165txt p{margin:3px 0;font-size:13px;white-space:normal}.job165actions{display:flex;gap:5px;flex-wrap:wrap}.job165actions button{border:1px solid #d4d9de;background:#fafafa;border-radius:8px;padding:6px;cursor:pointer}.job165empty{padding:20px;text-align:center;color:#657381}.job165media{font-size:23px;min-width:48px}#job165mediaarea{margin-top:10px;padding:12px;border:1px solid #ddd;border-radius:10px}#job165mediaarea[hidden]{display:none!important}@media(max-width:650px){.job165row{flex-wrap:wrap}.job165actions{width:100%;justify-content:flex-end}#job165agenda{padding:12px}}

.job166detail>summary{cursor:pointer;list-style:none;position:relative;padding-right:24px}.job166detail>summary::-webkit-details-marker{display:none}.job166detail>summary:after{content:'⌄';position:absolute;right:4px;top:2px}.job166detail[open]>summary:after{content:'⌃'}.job166body{margin-top:10px;padding:10px;background:#f5f6f8;border-radius:10px;font-size:13px;line-height:1.7;overflow-wrap:anywhere}.job166body a{display:inline-block;margin:2px 5px;color:#164d77}

/* 7.3.167: responsive distinct day/week/month controls */
.job167period{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.job167period strong{font-size:15px;white-space:nowrap}.job167period button{min-width:36px;min-height:36px;border:1px solid #ddd;border-radius:9px;background:#fff;font-size:24px}.job167period input,.job167period select{max-width:155px;min-height:38px;border:1px solid #ddd;border-radius:9px;background:#fff;padding:5px 8px}.job167period input[type=number]{max-width:88px}.job165controls{flex-wrap:wrap;gap:12px}@media(max-width:650px){.job167period{width:100%;justify-content:flex-start}.job167period strong{font-size:14px}}

/* 7.3.175 compact agenda */
.job175row{display:grid;grid-template-columns:52px minmax(0,1fr) 44px;align-items:start;gap:12px;position:relative;overflow:visible}.job175row .job165txt{min-width:0}.job175row .job166detail>summary{cursor:pointer;list-style:none;padding-right:12px}.job175row .job166detail>summary::-webkit-details-marker{display:none}.job175title{font-size:16px;line-height:1.35;overflow-wrap:anywhere}.job175place{font-size:13px;margin-top:4px;color:#607181}.job175meta{display:flex;flex-wrap:wrap;gap:2px 12px;margin-top:6px;font-size:12px;color:#536372}.job175meta b{font-weight:700}.job175menu{position:relative;justify-self:end;z-index:1}.job175menu[open]{z-index:20}.job175menu>summary{display:flex;align-items:center;justify-content:center;width:42px;height:42px;border:1px solid #d7dde4;border-radius:10px;background:#f4f5f7;color:#24333f;cursor:pointer;font-size:21px;list-style:none}.job175menu>summary::-webkit-details-marker{display:none}.job175menuitems{position:absolute;right:0;top:45px;z-index:30;display:flex;flex-direction:column;gap:2px;min-width:168px;padding:6px;border:1px solid #e0e5ea;border-radius:12px;background:#fff;box-shadow:0 12px 24px rgba(0,0,0,.16)}.job175menuitems button{width:100%;border:0;border-radius:7px;background:transparent;text-align:left;padding:10px;color:#24333f;cursor:pointer;white-space:nowrap}.job175menuitems button:active,.job175menuitems button:hover{background:#fff2c1}@media(max-width:650px){.job175row{display:grid;grid-template-columns:48px minmax(0,1fr) 42px}.job175menuitems{min-width:155px}.job175meta{display:block}.job175meta span{display:block}}

/* 7.3.176 consistent icon menu; UI only */
.job175menu>summary{width:42px;height:42px;padding:0;background:#f5f6f8;border:1px solid #d9dfe5;border-radius:11px;color:#24333f;transition:background .18s ease,transform .18s ease,border-color .18s ease;outline-offset:3px}
.job175menu>summary svg{display:block;flex:0 0 auto;transition:transform .18s ease}
.job175menu[open]>summary{background:#fff4ce;border-color:#e9b93c}
.job175menu[open]>summary svg{transform:rotate(90deg)}
.job175menuitems{min-width:170px;padding:6px;border:1px solid #e5e8ee;border-radius:14px;box-shadow:0 14px 28px rgba(16,33,45,.14);animation:job176appear .16s ease-out;transform-origin:top right}
.job175menuitems button{display:flex;align-items:center;gap:11px;padding:10px 12px;font:inherit;font-size:14px;line-height:1.25;border-radius:9px;min-height:43px}
.job175menuitems button svg{flex:0 0 20px;width:20px;height:20px;color:#3e505e}
.job175menuitems button span{display:block}
.job175menuitems button[data-delete] svg{color:#b43d3d}
@keyframes job176appear{from{opacity:0;transform:translateY(-5px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(prefers-reduced-motion:reduce){.job175menu>summary,.job175menu>summary svg,.job175menuitems{transition:none;animation:none}}

/* 7.3.177 colorful emoji menu options */
.job175menuitems button .job177emoji{display:inline-flex;align-items:center;justify-content:center;flex:none;width:26px;min-width:26px;height:28px;font-size:23px;line-height:1;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;}
.job175menuitems button{gap:10px;}

/* Unified agenda day/week/month navigation and office-only filters */
.job165filters,.office7302-agenda-controls,.office7302-navigation,.office7302-modes,.office7302-filters,.job165filter-group{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.job165filters{margin:8px 0 12px;justify-content:space-between}
.job165filters button,.office7302-agenda-controls button{border:1px solid #d9dfe5;border-radius:10px;padding:9px 13px;background:#f3f4f6;color:#24333f;font-weight:650;cursor:pointer}
.job165filters button.selected,.office7302-agenda-controls button.selected{background:#fac423;border-color:#fac423}
.job165filters [data-agenda-nav],.office7302-navigation [data-office-agenda-nav]{font-size:23px;min-width:39px;padding:4px 10px}
.office7302-agenda-controls{padding:13px 0;gap:12px;border-bottom:1px solid #e4e8ec;margin-bottom:12px}
.office7302-navigation input{padding:9px;border-radius:9px;border:1px solid #d9dfe5;max-width:175px}
.office7302-filters{width:100%}
@media(max-width:650px){.job165filters{justify-content:flex-start}.job165filter-group{width:100%}}

/* Quiet location tones: office blue-grey, site warm stone. */
#job165agenda .job165row[data-agenda-scope]{margin:8px 0;padding:12px;border:1px solid #e6e9ed;border-left:3px solid #d5dbe0;border-radius:10px}
#job165agenda .job165row[data-agenda-scope="office"]{background:#f3f6fa;border-color:#dce3eb;border-left-color:#8a9eb4}
#job165agenda .job165row[data-agenda-scope="site"]{background:#f7f5f0;border-color:#e6e0d7;border-left-color:#ae9d85}
#job165agenda [data-agenda-filter="office"]{background:#f3f6fa;border-color:#dce3eb}
#job165agenda [data-agenda-filter="site"]{background:#f7f5f0;border-color:#e6e0d7}
#job165agenda [data-agenda-filter="office"].selected{background:#e5ecf4;border-color:#8a9eb4}
#job165agenda [data-agenda-filter="site"].selected{background:#eee8df;border-color:#ae9d85}
#job165agenda [data-agenda-filter="office"]::before,#job165agenda [data-agenda-filter="site"]::before{content:"";display:inline-block;width:7px;height:7px;margin-right:6px;border-radius:50%;background:#8a9eb4}
#job165agenda [data-agenda-filter="site"]::before{background:#ae9d85}

/* Owner-managed reminders use one quiet third tone. */
#job165agenda .job165row[data-agenda-scope="personal"],.personal252card{background:#f5f2f7;border:1px solid #e2dbe9;border-left:3px solid #a18bb0;border-radius:10px;padding:12px}
#job165agenda #personalNew252,#job165agenda [data-agenda-filter="personal"]{background:#f5f2f7;border:1px solid #d7ccdf;color:#594b65}
#job165agenda [data-agenda-filter="personal"].selected{background:#eae3f0;border-color:#a18bb0}
.personal252label{font-size:11px;color:#756380!important;margin-top:3px}

.home253tabs{display:flex;gap:8px;margin:16px 0}.home253tabs button{flex:1;min-height:46px;border:1px solid #ddd6e3;border-radius:10px;background:#f7f5f9;color:#594b65;padding:10px;font-weight:650}.home253tabs button[aria-selected="true"]{background:#eae3f0;border-color:#a18bb0}.home253heading{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-bottom:16px}.home253records{display:grid;gap:12px}.home253records .personal252card{display:flex;gap:12px;align-items:center;justify-content:space-between}.home253records .personal252card>div{min-width:0;overflow-wrap:anywhere}.home253records p{white-space:pre-wrap;margin:6px 0}.home253records small{color:#756380}.home253records button{flex-shrink:0}@media(max-width:650px){.home253records .personal252card{align-items:flex-start;flex-direction:column}}

/* Private household budget */
.home254controls,.home254actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.home254controls{margin:18px 0}.home254controls label{display:grid;gap:5px}
.home254totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.home254totals article{display:grid;gap:8px;border:1px solid #ddd5e3;background:#f5f2f7;border-radius:14px;padding:16px}
.home254totals strong{font-size:clamp(18px,3vw,26px);overflow-wrap:anywhere}
.home254period{color:#685f6e;margin:14px 0}
.home254actions{flex-shrink:0}
@media(max-width:480px){.home254totals{grid-template-columns:1fr}.home254totals article{display:flex;justify-content:space-between;align-items:center}.home254controls .primary{flex:1}}

#agendaOverdue263{margin-top:12px;padding:12px 16px;border-left:4px solid #b98620;background:#fff8e8;color:#6b4811;border-radius:8px}#agendaOverdue263 ul{margin:8px 0 0;padding-left:20px}.job263late{color:#925e0a;font-weight:600}

/* 7.3.266: overdue previews use the same actionable agenda rows. */
#agendaOverdue263 ul{list-style:none;padding:0;display:grid;gap:8px}
#agendaOverdue263 li{min-width:0}
#agendaOverdue263 .job165row{margin:0;border-color:#d9bd7d}
#agendaOverdue263 .job175menuitems{color:#26333d}
