#bmp-topbar{position:sticky;top:0;z-index:45;background:var(--bg-page);padding-top:12px!important;padding-bottom:12px!important}.bmp-topbar-right{flex-wrap:wrap;gap:9px!important}.bma-bell{display:inline-flex;align-items:center;gap:7px;background:var(--bg-surface);color:var(--text-main);border:1px solid var(--border);border-radius:9px;padding:9px 12px;font:600 12px system-ui;min-height:44px;cursor:pointer}.bma-bell[hidden]{display:none}.bma-bell-icon{width:18px;height:18px}.bma-badge{display:inline-grid;place-items:center;min-width:20px;height:20px;border-radius:10px;background:#a43d32;color:white;padding:0 4px;font-size:10px}.bma-badge[hidden]{display:none}.bma-briefing{background:var(--bg-surface);border:1px solid var(--border);border-left:3px solid #b88e44;border-radius:12px;padding:22px;margin:0 0 22px;display:flex;align-items:center;justify-content:space-between;gap:24px}.bma-briefing h3{font:600 19px system-ui;margin:8px 0}.bma-briefing p{font-size:13px;line-height:1.7;margin:8px 0;max-width:750px}.bma-actions{display:flex;gap:8px;flex-wrap:wrap}.bma-actions .btn{width:auto;min-height:42px;font-size:12px;padding:9px 12px}.bma-actions select{width:auto;max-width:100%;min-height:42px;font-size:12px}.bma-briefing>.bma-actions{flex-shrink:0;max-width:220px}
#bma-alert-dialog,#bma-schedule-dialog,#bma-follow-dialog{width:min(720px,calc(100% - 24px));max-height:90dvh;padding:0;border:1px solid var(--border);border-radius:16px;background:var(--bg-surface);color:var(--text-main);overflow:hidden}#bma-alert-dialog[open],#bma-schedule-dialog[open],#bma-follow-dialog[open]{display:flex;flex-direction:column}#bma-alert-dialog::backdrop,#bma-schedule-dialog::backdrop,#bma-follow-dialog::backdrop{background:#14212ba6}.bma-dialog-head{display:flex;align-items:center;justify-content:space-between;padding:18px 22px;border-bottom:1px solid var(--border);gap:16px;flex-shrink:0}.bma-dialog-head h2{font:600 22px system-ui;margin:4px 0}.bma-dialog-head .btn{width:44px;min-height:44px;flex-shrink:0}.bma-dialog-body{padding:20px 22px;overflow:auto;min-height:0;overscroll-behavior:contain}.bma-group{font:600 13px system-ui;color:var(--text-muted);margin:24px 0 10px}.bma-alert{padding:16px;margin-bottom:12px;border:1px solid var(--border);border-left:3px solid #b88e44;border-radius:10px;overflow-wrap:anywhere}.bma-alert.is-read{border-left-color:var(--border)}.bma-alert h4{font:600 15px system-ui;margin:0 0 6px}.bma-alert p{font-size:13px;line-height:1.7;margin:0 0 10px}.bma-unread{font-size:10px;color:#977232;display:block;margin:8px 0}#calendar-zone,label:has(>input[name=time_zone]),label:has(>input[name=timeZone]){display:none}.bma-settings{margin-top:24px;border-top:1px solid var(--border);padding-top:18px}.bma-settings>summary{cursor:pointer;min-height:44px;font-weight:600;font-size:14px}.bma-dialog-body label{display:block;font-size:13px;margin:12px 0;line-height:1.6}.bma-dialog-body input:not([type=checkbox]),.bma-dialog-body select,.bma-dialog-body textarea{width:100%;box-sizing:border-box;min-height:44px;font:inherit}.bma-dialog-body input[type=checkbox]{width:18px;height:18px;vertical-align:middle;margin-right:8px}.bma-dialog-body .bma-actions select{width:auto}.bma-reading{border-top:1px solid var(--border);padding:12px 18px;display:flex;gap:8px;align-items:center;flex-wrap:wrap}.bma-reading[hidden]{display:none}.bma-reading span{flex:1;min-width:100px;font-size:12px}.bma-reading .btn{width:auto;min-height:44px;font-size:12px}.bma-empty{font-size:14px;padding:22px 0}#bma-confirm-card{background:var(--bg-page);padding:18px;margin-top:18px;border:1px solid #b88e44;border-radius:10px}#bma-confirm-card h3{font:600 17px system-ui}#bma-confirm-card p,#bma-status,#bma-device-status,#bma-schedule-status,#bma-follow-status{font-size:13px;line-height:1.7}#bma-alert-dialog .hint{font-size:11px;color:var(--text-muted)}#bma-confirm{min-height:48px}#bma-follow-text{min-height:170px}
@media(max-width:700px){.bma-briefing{padding:18px;display:block}.bma-briefing>.bma-actions{max-width:none;margin-top:15px}.bma-briefing>.bma-actions .btn{flex:1 1 auto}.bmp-topbar-left{display:none!important}.bmp-topbar-right{width:100%;justify-content:flex-end}#bma-alert-dialog{width:100%;max-width:100%;height:100dvh;max-height:100dvh;border:0;border-radius:0}.bma-dialog-head{padding:14px 16px}.bma-dialog-body{padding:16px}.bma-alert{padding:14px}.bma-actions .btn{font-size:11px}.bma-reading{padding:12px}.bma-reading span{flex-basis:100%}.bma-reading .btn{flex:1}#bma-schedule-dialog .row2{grid-template-columns:1fr 1fr;gap:12px}}
@media print{.bma-bell,.bma-briefing,#bma-alert-dialog,#bma-schedule-dialog,#bma-follow-dialog{display:none!important}}

.bma-business-dialog{width:min(900px,calc(100% - 24px));max-height:90dvh;border:1px solid #d4d8dd;border-radius:16px;padding:0}.bma-business-dialog form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.bma-business-dialog label{display:flex;flex-direction:column;gap:6px}.bma-business-dialog input,.bma-business-dialog select,.bma-business-dialog textarea{width:100%;min-width:0;padding:10px}.bma-business-dialog label:has(input[type=checkbox]){flex-direction:row;align-items:center}.bma-business-dialog input[type=checkbox]{width:auto}.bma-item-scroll{grid-column:1/-1;overflow:auto}.bma-item-scroll table{min-width:600px;width:100%}.bma-item-scroll td{padding:4px}.bma-item-scroll th{text-align:left}.bma-item-scroll input[data-field=description]{min-width:200px}.bma-item-scroll input[type=number]{width:100px}#bma-business-summary{padding:12px;border-radius:10px;background:#f4f6f7;margin-bottom:16px}#bma-business-summary p{margin:6px 0}@media(max-width:600px){.bma-business-dialog form{grid-template-columns:1fr}.bma-business-dialog .bma-actions button{flex:1}.bma-business-dialog{width:calc(100% - 16px)}}

.bma-business-advanced{grid-column:1/-1;padding:12px;border:1px solid #ddd;border-radius:10px}.bma-business-advanced summary{cursor:pointer;padding:6px 0;font-weight:600}.bma-business-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding-top:12px}.bma-business-dialog .bma-actions{position:sticky;bottom:0;background:var(--bg,#fff);padding:12px 0;margin-top:12px}@media(max-width:600px){.bma-business-fields{grid-template-columns:1fr}.bma-item-scroll table{min-width:0}.bma-item-scroll thead{display:none}.bma-item-scroll tbody{display:block}.bma-item-scroll tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;border:1px solid #ddd;padding:10px;border-radius:10px;margin-bottom:10px}.bma-item-scroll td{display:block}.bma-item-scroll td:first-child{grid-column:1/-1}.bma-item-scroll td:before{content:attr(data-label);display:block;font-size:12px;margin-bottom:4px}.bma-item-scroll input,.bma-item-scroll input[data-field=description],.bma-item-scroll input[type=number]{width:100%;min-width:0}}
