/* Signed-in notification settings only; preserve the shared site's typography. */
.notification-preferences{width:100%;min-width:0}.notification-preferences form{margin:0}.notification-preferences .card{width:100%;min-width:0}.notification-preferences .notif-method-header{display:grid;grid-template-columns:20px minmax(0,1fr) auto;align-items:center;gap:12px}.notification-preferences .notif-method-icon{width:20px;height:22px;background:transparent;border-radius:0;color:var(--text-secondary);font-size:20px}.notification-preferences .notif-method-icon img{display:block;width:20px;height:20px;object-fit:contain}.notification-preferences .notif-method-header>.badge-status{margin-inline-start:auto;white-space:nowrap;font-size:.7rem}.notification-preferences .notif-method-header .notif-toggle{margin:0}.notification-preferences .notif-method-config{margin-inline-start:32px;margin-inline-end:0}.notification-preferences .notif-method-config input{width:100%}.notification-preferences .notif-method-unavailable .notif-method-desc{color:var(--text-secondary)}
.notification-preferences .specific-events-empty{padding:6px 0;text-align:start}.notification-preferences .specific-events-empty p{margin:0;color:var(--text-secondary)}.notification-preferences .followed-pages{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr));gap:10px}.notification-preferences .followed-page-option{display:flex;align-items:center;gap:10px;padding:10px 12px;background:var(--bg-header);border-radius:var(--radius);border:1px solid var(--border-color);min-width:0}.notification-preferences .followed-page-option .form-check-input{float:none;margin:0!important;flex:0 0 auto}.notification-preferences .followed-page-option label{min-width:0;overflow-wrap:anywhere}.notification-preferences-actions{margin:20px 0 32px;display:flex;align-items:center;flex-wrap:wrap;gap:12px}.notification-preferences .notif-toggle input:focus-visible+.toggle-slider{outline:2px solid var(--cs-green-dark);outline-offset:3px}
@media(max-width:480px){.notification-preferences .notif-method-header{gap:10px}.notification-preferences .notif-method-config{margin-inline-start:30px}.notification-preferences-actions{align-items:stretch}.notification-preferences-actions .btn{white-space:normal}.notification-preferences .card-body{padding:18px 16px}.notification-preferences .notif-matrix{min-width:0}.notification-preferences .notif-matrix td,.notification-preferences .notif-matrix th{padding:10px 8px}}

.notification-preferences .notif-toggle{position:relative}.notification-preferences .notif-toggle input{display:block;position:absolute;width:1px;height:1px;padding:0;margin:0;clip-path:inset(50%);overflow:hidden;white-space:nowrap}

/* Signed-in Profile uses the shared content width; guests match the sign-in card. */
main .notification-preferences{width:100%;max-width:100%;margin-inline:0}
main .notification-preferences-guest{width:min(100%,760px);max-width:760px;margin-inline:auto}
@media(max-width:640px){main .notification-preferences-guest{width:min(100%,480px);max-width:480px}}


/* Profile is a full-width guided flow, matching Overview and Cloud Locations. */
.notification-flow{display:grid;gap:20px;min-width:0}
.notification-step{overflow:hidden;border:1px solid var(--border-color);border-radius:12px;background:var(--bg-card);box-shadow:var(--shadow-card)}
.notification-step-heading{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;align-items:center;padding:16px 24px;background:linear-gradient(135deg,color-mix(in srgb,var(--cs-green) 6%,var(--bg-card)),var(--bg-card) 65%);border-bottom:1px solid var(--border-color)}

.notification-step-heading h2{margin:0;font-size:1.08rem;font-weight:750;color:var(--text-primary)}
.notification-step-body{padding:20px 24px 24px;min-width:0}
.notification-step-body>.card{margin:0;box-shadow:none;border:0;background:transparent}
.notification-step-body>.card>.card-body{padding:0}
.notification-step-body>.card[style]{margin-top:0!important}
.notification-step .section-title{margin-top:0}
.notification-selection-list{display:grid;gap:8px}
.notification-selection-row{display:flex;align-items:flex-start;gap:12px;min-width:0;padding:13px 14px;border:1px solid var(--border-color);border-radius:9px;background:var(--bg-header);color:var(--text-primary);cursor:pointer;transition:border-color .15s,background .15s,box-shadow .15s}
.notification-selection-row:hover{border-color:var(--cs-green);box-shadow:0 2px 8px #0000000b}
.notification-selection-row:has(input:checked){border-color:var(--cs-green);background:color-mix(in srgb,var(--cs-green) 9%,var(--bg-card));box-shadow:none}
.notification-selection-control{flex:0 0 auto;width:17px;height:17px;margin:2px 0 0;accent-color:var(--cs-green)}
.notification-selection-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:3px;line-height:1.25}
.notification-selection-copy strong{font-size:.86rem;font-weight:700;overflow-wrap:anywhere}
.notification-selection-copy small{color:var(--text-secondary);font-size:.74rem;overflow-wrap:anywhere}
.notification-selection-arrow{align-self:center;color:var(--text-secondary);font-size:1.05rem}
.notification-selection-leading-icon{align-self:center;margin-left:auto;color:var(--cs-green);font-size:1.05rem}
.scope-selection .notification-selection-row{min-height:46px;align-items:center;padding-block:11px}
.notification-table-wrap{overflow-x:auto;border:1px solid var(--border-color);border-radius:9px}
.notification-data-table,.notification-preference-matrix{width:100%;margin:0;min-width:520px}
.notification-data-table th,.notification-data-table td,.notification-preference-matrix th,.notification-preference-matrix td{padding:12px 14px}
.notification-preference-matrix .notification-preference-channel{text-align:center;width:120px}
.notification-event-label{display:inline-flex;align-items:center;gap:8px;font-weight:600}
.notification-event-label i{color:var(--cs-green);font-size:1rem}
.notification-preference-matrix .matrix-cb{width:17px;height:17px;accent-color:var(--cs-green)}
.notification-coming-soon{color:var(--text-secondary);font-weight:700}
.notification-empty-state{display:flex;align-items:center;gap:13px;padding:14px 0;color:var(--text-secondary)}
.notification-empty-state>i{font-size:1.55rem;color:var(--cs-green);flex:none}
.notification-empty-state strong{display:block;color:var(--text-primary);font-size:.9rem}
.notification-empty-state p{margin:3px 0 0;font-size:.8rem}
.notification-step .notif-methods{border:1px solid var(--border-color);border-radius:9px;padding:0 16px;background:var(--bg-header)}
.notification-step .notif-method{padding:16px 0}
.notification-step .notif-method-config{margin-top:12px}
.notification-step .notif-method-config input{max-width:none!important}
.notification-step .notif-help{margin:5px 0 0;color:var(--text-secondary);font-size:.72rem}
.notification-preferences-actions{margin:0;padding:4px 0 12px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.notification-preferences-actions .btn{min-height:44px}
@media(max-width:640px){
 .notification-step-heading{padding:18px 16px 15px;grid-template-columns:minmax(0,1fr);gap:10px}

 .notification-step-body{padding:16px 16px 18px}
 .notification-step-heading h2{font-size:1rem}
 .notification-selection-row{padding:12px 11px}
 .notification-preference-matrix .notification-preference-channel{width:78px}
}

/* One actual policy row per location, not a separate scope and shared matrix. */
.scope-selection{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:16px}
.location-preferences{border:1px solid var(--border-color);border-radius:9px;overflow:hidden}
.location-preferences-head,.location-preference-row{display:grid;grid-template-columns:minmax(160px,1.05fr) minmax(0,2.8fr) minmax(115px,.75fr);gap:20px;padding:16px}
.location-preferences-head{background:var(--bg-header);font-size:.8rem;font-weight:700;color:var(--text-secondary)}
.location-preference-row{border-top:1px solid var(--border-color);align-items:start}
.location-preference-row:has(.location-name input:checked){background:color-mix(in srgb,var(--cs-green) 4%,var(--bg-card))}
.location-name{display:flex;gap:10px;align-items:start;font-size:.86rem;line-height:1.4;min-width:0;overflow-wrap:anywhere}
.location-events,.location-methods{border:0;padding:0;margin:0;min-width:0}
.location-events{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 14px}
.location-events label,.location-methods label{display:flex;align-items:start;gap:7px;font-size:.76rem;line-height:1.4;cursor:pointer}
.location-preference-row input{accent-color:var(--cs-green);flex-shrink:0;margin-top:2px;width:15px;height:15px}
.location-methods small{display:block;font-size:.68rem;line-height:1.4;color:var(--text-secondary);margin-top:9px}
.location-preference-row:has(.location-name input:not(:checked)) :is(.location-events,.location-methods){opacity:.65}
@media(max-width:1000px){.location-preferences-head,.location-preference-row{grid-template-columns:minmax(130px,1fr) minmax(0,2fr) minmax(95px,.8fr);gap:12px}.location-events{grid-template-columns:1fr}}
@media(max-width:600px){.scope-selection{grid-template-columns:1fr}.location-preferences-head{display:none}.location-preference-row{grid-template-columns:1fr;gap:14px}.location-name{font-size:.9rem}.location-events{grid-template-columns:repeat(2,minmax(0,1fr))}.location-methods small{display:inline;margin-inline-start:22px}.location-preference-row fieldset legend{position:static!important;clip:auto!important;width:auto!important;height:auto!important;overflow:visible!important;font-size:.74rem;font-weight:700;margin-bottom:8px}}

.location-events label span,.location-methods label span{min-width:0;overflow-wrap:anywhere}

/* Section-heading bulk controls, with the same controls available on phones. */
.location-preferences-head label{display:flex;align-items:center;gap:7px;cursor:pointer;min-width:0}
.location-preferences-head input{width:15px;height:15px;accent-color:var(--cs-green);flex:none;margin:0}
.bulk-event-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 14px;margin-top:13px;font-size:.73rem;font-weight:400}
.bulk-event-choices label{align-items:flex-start}.bulk-email-choice{margin-top:13px;font-size:.76rem;font-weight:400}
.location-events i,.location-methods i,.bulk-event-choices i{color:var(--text-secondary);flex:none}
.subscription-rule-summary{display:grid;gap:0}.subscription-rule-summary>div{display:grid;grid-template-columns:minmax(170px,1fr) minmax(0,3fr) auto;gap:18px;align-items:start;padding:13px 0;border-bottom:1px solid var(--border-color);font-size:.79rem;line-height:1.6}.subscription-rule-summary>div:last-child{border-bottom:0}.subscription-rule-summary strong{font-size:.8rem}.subscription-rule-summary strong i{margin-inline-end:8px}.subscription-rule-summary>div>span{color:var(--text-secondary);overflow-wrap:anywhere}.subscription-rule-method{display:flex;align-items:center;gap:6px;white-space:nowrap}
.preference-guide{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.preference-guide>div{display:flex;gap:10px;font-size:.8rem;align-items:start;min-width:0}.preference-guide>div>i{font-size:1.1rem;color:var(--text-secondary)}.preference-guide small,.method-guide span>span{display:block;color:var(--text-secondary);font-size:.74rem;margin-top:4px;overflow-wrap:anywhere}.followed-event-details>summary{padding:16px 24px;font-size:.9rem;font-weight:600;cursor:pointer}
@media(max-width:600px){.location-preferences-head{display:grid;grid-template-columns:1fr;gap:20px;padding:16px}.bulk-event-choices{grid-template-columns:repeat(2,minmax(0,1fr))}.subscription-rule-summary>div{grid-template-columns:minmax(0,1fr) auto;gap:7px 12px}.subscription-rule-summary>div>span:not(.subscription-rule-method){grid-column:1/-1;grid-row:2}.preference-guide{grid-template-columns:repeat(2,minmax(0,1fr))}.method-guide{grid-template-columns:1fr}.followed-event-details>summary{padding:16px}}
