/* Only Home and the assistant are restyled. Existing app forms and handlers stay intact. */
#tab-home>.dispatcher,#tab-home>.stage-card,#tab-home>.grid-top,#tab-home>#gsCard{display:none!important}
.bmg-guide-ui{font:14px/1.55 system-ui,sans-serif;color:var(--text-main,#222831);text-align:left;min-width:0}
.bmg-guide-ui button,.bmg-guide-ui input,.bmg-guide-ui select,.bmg-guide-ui textarea{font:inherit}
.bmg-guide-ui button{cursor:pointer;min-height:44px}
.bmg-guide-ui [hidden]{display:none!important}
.bmg-welcome{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:22px 0}
.bmg-welcome h2{font:500 clamp(25px,3vw,34px)/1.2 Georgia,serif;margin:5px 0 9px}
.bmg-welcome p{color:var(--text-muted,#5f6b7a);margin:0}
.bmg-eyebrow{font-size:10px!important;font-weight:700;letter-spacing:.1em;color:#987337!important}
.bmg-home-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(280px,1fr);gap:22px;align-items:start}
.bmg-assistant,.bmg-calendar{background:var(--bg-surface,#fff);border:1px solid var(--border,#e8e2d8);border-radius:14px;overflow:hidden}
.bmg-assistant>summary{display:flex;align-items:center;gap:12px;cursor:pointer;padding:18px;list-style:none;min-height:48px}
.bmg-assistant>summary::-webkit-details-marker{display:none}
.bmg-assistant summary strong{display:block;font-size:17px}.bmg-assistant summary small{display:block;color:var(--text-muted,#5f6b7a);font-size:12px}.bmg-assistant summary img{flex-shrink:0}.bmg-expand{margin-left:auto;font-size:20px}.bmg-assistant[open] .bmg-expand{transform:rotate(180deg)}
.bmg-assistant-body{padding:0 18px 16px}#bmg-conversation{max-height:230px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.bmg-message{padding:12px 14px;background:var(--cream,#f4f1ea);border-radius:10px;margin:0 0 10px;overflow-wrap:anywhere;white-space:pre-wrap}.bmg-message p{margin:0}.bmg-message.user{margin-left:25px;background:var(--bg-surface,#fff);border:1px solid var(--border,#e8e2d8)}.bmg-message>b{font-size:10px;display:block;letter-spacing:.06em;margin-bottom:5px;color:var(--text-muted,#5f6b7a)}
.bmg-message-actions,.bmg-suggestions{display:flex;flex-wrap:wrap;gap:7px;margin-top:9px}.bmg-suggestions{margin:8px 0 12px}.bmg-message-actions button,.bmg-suggestions button,.bmg-quick-links button{background:var(--bg-surface,#fff);border:1px solid var(--border,#e8e2d8);color:inherit;border-radius:8px;padding:8px 11px;font-size:12px}.bmg-message-actions button{border-color:#b88e44}
#bmg-question-form{display:flex;align-items:center;gap:8px;border:1px solid var(--border,#e8e2d8);border-radius:9px;padding:7px;background:var(--bg-surface,#fff)}#bmg-question{border:0;box-shadow:none;margin:0;width:100%;min-width:0;resize:vertical;min-height:50px;background:transparent;color:inherit;padding:7px}#bmg-question-form button{background:#1e242b;color:#ead1a0;border:0;border-radius:7px;min-width:44px;font-size:23px}.bmg-offline{font-size:11px;color:var(--text-muted,#5f6b7a);margin:9px 0 0}
.bmg-calendar{padding:18px}.bmg-calendar h3{margin:0;font-size:17px}.bmg-calendar-heading,.bmg-month-nav{display:flex;align-items:center;justify-content:space-between;gap:8px}.bmg-calendar-heading .btn{font-size:11px;padding:7px}.bmg-month-nav{margin:12px 0}.bmg-month-nav button{background:transparent;color:inherit;border:1px solid var(--border,#e8e2d8);border-radius:8px;min-width:44px;font-size:20px}.bmg-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));text-align:center;gap:2px}.bmg-days>span{font-size:10px;padding:5px}.bmg-days button{background:transparent;color:inherit;border:0;border-radius:7px;position:relative;padding:0}.bmg-days button[aria-pressed=true]{background:#1e242b;color:white}.bmg-days button.has-event:after{content:'';width:4px;height:4px;background:#b88e44;border-radius:50%;position:absolute;bottom:4px;left:calc(50% - 2px)}
.bmg-agenda-item{padding:9px 0;border-top:1px solid var(--border,#e8e2d8)}.bmg-agenda-item strong,.bmg-agenda-item small{display:block}.bmg-agenda-item small{color:var(--text-muted,#5f6b7a)}.bmg-agenda-item label{display:flex;align-items:center;gap:9px}.bmg-agenda-item input{width:18px;height:18px}.bmg-quick-links{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0}.bmg-quick-links button{flex:1;text-align:left;font-weight:600;padding:12px}
#bmg-estimate-assistant{margin:0 0 18px}#bmg-estimate-assistant #bmg-conversation{max-height:160px}#bmg-estimate-assistant .bmg-assistant-body{padding-top:0}.bmg-highlight{outline:3px solid #b88e44!important;outline-offset:4px;scroll-margin:100px}
#bmg-assistant-launcher{position:fixed;right:20px;bottom:25px;z-index:100;background:#1e242b;color:#fff;border:1px solid #b88e44;border-radius:30px;padding:12px 19px;box-shadow:0 4px 20px #0002}
#bmg-assistant-dialog,#bmg-reminder-dialog{width:min(560px,calc(100% - 24px));max-height:85dvh;padding:20px;border:1px solid var(--border,#e8e2d8);border-radius:14px;background:var(--bg-surface,#fff);color:var(--text-main,#222831)}#bmg-assistant-dialog::backdrop,#bmg-reminder-dialog::backdrop{background:#1e242b88}#bmg-assistant-close{margin-bottom:10px}#bmg-reminder-form label{display:block;margin:12px 0}#bmg-reminder-form input,#bmg-reminder-form select{display:block;width:100%;min-height:44px;margin:5px 0;padding:8px;border:1px solid var(--border,#ccc);background:var(--bg-surface,#fff);color:inherit;border-radius:7px}.bmg-dialog-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:20px}.bmg-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@media(max-width:760px){.bmg-home-grid{grid-template-columns:1fr}.bmg-welcome{align-items:flex-start;flex-direction:column;gap:14px}.bmg-quick-links{gap:6px}.bmg-quick-links button{font-size:11px;padding:9px}.bmg-assistant-body{padding:0 13px 13px}.bmg-assistant>summary{padding:13px}.bmg-calendar{padding:14px}#bmg-assistant-launcher{bottom:90px;right:12px}#bmg-estimate-assistant #bmg-conversation{max-height:145px}}
@media print{.bmg-guide-ui,#bmg-estimate-assistant{display:none!important}}

#bmg-home{max-width:1250px;margin:auto}.bmg-guide-ui .btn{width:auto;flex:none}.bmg-welcome>div{flex:1}.bmg-welcome>.btn{padding:11px 20px}.bmg-offline{padding:0;border:0;background:none;text-align:left}
