/* Settings and contacts use the same controls and surfaces as the mail workspace.
 * Scope every rule to a native task; mail bodies and print layouts stay independent.
 * Elastic retains pane visibility, responsive navigation and registered commands. */
body:is(.task-settings,.task-addressbook):not(.action-print) {
  color:var(--ms-text,#202124);
  font-size:14px;
  line-height:1.5;
  color-scheme:light;
}
body:is(.task-settings,.task-addressbook):not(.action-print) :is(#layout-list,#layout-content) {
  background:#fff;
  color:var(--ms-text,#202124);
}
body:is(.task-settings,.task-addressbook):not(.action-print) :is(#layout-sidebar,#layout-list,#layout-content)>.header {
  border-color:var(--ms-border,#e9ebef)!important;
  box-shadow:none;
}
body:is(.task-settings,.task-addressbook):not(.action-print) .header-title {
  font-size:16px;
  font-weight:600;
  line-height:1.4;
  color:var(--ms-text,#202124);
}
body:is(.task-settings,.task-addressbook):not(.action-print) :is(#settings-menu,#directorylist,#savedsearchlist) {
  padding:8px 0;
}
body:is(.task-settings,.task-addressbook):not(.action-print) :is(#settings-menu,#directorylist,#savedsearchlist)>li>a,
body.task-addressbook:not(.action-print) #directorylist li li>a {
  margin:2px 12px;
  padding-block:8px;
  border-radius:8px;
  color:var(--ms-text,#202124);
  font-size:14px;
  line-height:20px;
  min-height:36px;
}
body:is(.task-settings,.task-addressbook):not(.action-print) :is(#settings-menu,#directorylist,#savedsearchlist) li>a:hover {
  background:#e9ebef;
}
body:is(.task-settings,.task-addressbook):not(.action-print) :is(#settings-menu,#directorylist,#savedsearchlist) li.selected>a {
  background:#e4e7ec!important;
  color:var(--ms-text,#202124)!important;
  font-weight:600;
}
body:is(.task-settings,.task-addressbook):not(.action-print) :is(#settings-menu,#directorylist,#savedsearchlist) li>a:before {
  color:#747b86;
}
body:is(.task-settings,.task-addressbook):not(.action-print) :is(#sections-table,#subscription-table,#identities-table,#responses-table,#contacts-table) {
  border:0;
  border-collapse:separate;
  border-spacing:0;
  font-size:14px;
}
body:is(.task-settings,.task-addressbook):not(.action-print) :is(#sections-table,#subscription-table,#identities-table,#responses-table,#contacts-table) td {
  color:#353a42;
  background:#fff;
  border-bottom:1px solid #f0f1f4;
  padding-block:11px;
  line-height:20px;
  vertical-align:middle;
}
body:is(.task-settings,.task-addressbook):not(.action-print) :is(#sections-table,#subscription-table,#identities-table,#responses-table,#contacts-table) tr:hover>td {
  background:#f6f7f9;
}
body:is(.task-settings,.task-addressbook):not(.action-print) :is(#sections-table,#subscription-table,#identities-table,#responses-table,#contacts-table) tr.selected>td {
  background:#fff4ce!important;
  color:var(--ms-text,#202124)!important;
}
/* folder_subscriptions() renders a UL tree, despite its historical "table" id. */
body.task-settings:not(.action-print) #subscription-table li>a {
  color:#353a42;
  border-bottom:1px solid #f0f1f4;
  padding-block:10px;
  line-height:22px;
  font-size:14px;
}
body.task-settings:not(.action-print) #subscription-table li>a:hover {
  background:#f6f7f9;
}
body.task-settings:not(.action-print) #subscription-table li.selected>a {
  background:#fff4ce!important;
  color:var(--ms-text,#202124)!important;
}
body.task-addressbook:not(.action-print) #contacts-table .email {
  color:#727985;
  font-size:13px;
  font-style:normal;
}
body:is(.task-settings,.task-addressbook):not(.action-print) .searchbar {
  background:#f1f2f4!important;
  border-radius:10px;
  margin:10px 12px;
}
body:is(.task-settings,.task-addressbook):not(.action-print) .searchbar:focus-within {
  background:#fff!important;
  box-shadow:0 0 0 2px #f4c331;
}
body:is(.task-settings,.task-addressbook):not(.action-print) .toolbar a {
  border-radius:7px;
  font-size:13px;
}
html:not(.touch) body:is(.task-settings,.task-addressbook):not(.action-print) .listing li>a:focus,
html:not(.touch) body:is(.task-settings,.task-addressbook):not(.action-print) .listing.focus tbody tr.focused>td:first-child,
html:not(.touch) body:is(.task-settings,.task-addressbook):not(.action-print) .listing.focus:not(.withselection) tbody tr.focused>td.selection+td {
  border-left-color:var(--ms-focus,#ad7d00);
}
body:is(.task-settings,.task-addressbook):not(.action-print) :is(.toolbar,.footer) a.disabled {
  color:#9a9fa8!important;
  opacity:.75;
}
body:is(.task-settings,.task-addressbook):not(.action-print) .footer {
  border-color:var(--ms-border,#e9ebef)!important;
  background:#fff;
  color:#737b87;
  font-size:12px;
}
/* Preferences and contact editors are independent same-origin iframe documents. */
html.iframe body:is(.task-settings,.task-addressbook):not(.action-print) {
  background:#fff!important;
}
body:is(.task-settings,.task-addressbook):not(.action-print) .formcontent:not(.popupmenu) {
  padding:24px;
  background:#fff;
  color:var(--ms-text,#202124);
}
body:is(.task-settings,.task-addressbook):not(.action-print) .formcontent :is(fieldset,table.propform,.propform) {
  min-width:0;
  max-width:100%;
}
body:is(.task-settings,.task-addressbook):not(.action-print) .formcontent fieldset:not(.tab-pane)+fieldset:not(.tab-pane) {
  margin-top:26px;
}
body:is(.task-settings,.task-addressbook):not(.action-print) .formcontent legend {
  padding-bottom:12px;
  margin-bottom:12px;
  border-bottom:1px solid #eceef1;
  font-size:16px;
  font-weight:600;
  line-height:24px;
  color:var(--ms-text,#202124);
}
body:is(.task-settings,.task-addressbook):not(.action-print) .formcontent :is(label,.col-form-label) {
  color:#454c57;
  font-size:14px;
  line-height:20px;
  overflow-wrap:anywhere;
}
body:is(.task-settings,.task-addressbook):not(.action-print) :is(.hint,.form-text,.text-muted) {
  color:#737b87!important;
  font-size:12px;
  line-height:18px;
}
body:is(.task-settings,.task-addressbook):not(.action-print) :is(.form-control,.custom-select,.input-group-text) {
  border-color:#dce0e6;
  border-radius:8px;
  color:var(--ms-text,#202124);
  background-color:#fff;
  font-size:14px;
}
body:is(.task-settings,.task-addressbook):not(.action-print) .formcontent :is(input.form-control,select.form-control,.custom-select) {
  min-height:38px;
}
body:is(.task-settings,.task-addressbook):not(.action-print) :is(input,textarea,select):focus-visible {
  outline:2px solid #d3a400;
  outline-offset:2px;
}
body:is(.task-settings,.task-addressbook):not(.action-print) :is(input[type=checkbox],input[type=radio]) {
  accent-color:#d1a400;
}
body:is(.task-settings,.task-addressbook):not(.action-print) .custom-control-input:checked~.custom-control-label::before {
  background-color:#e8bc20;
  border-color:#d8ad12;
}
body:is(.task-settings,.task-addressbook):not(.action-print) .custom-control-input:checked:disabled~.custom-control-label::before {
  background-color:#e5d99f;
  border-color:#d6c98c;
}
body:is(.task-settings,.task-addressbook):not(.action-print) .custom-control-input:focus~.custom-control-label::before,
body:is(.task-settings,.task-addressbook):not(.action-print) .custom-switch .custom-control-input:focus~.custom-control-label::before {
  border-color:#b99000;
  box-shadow:0 0 0 3px #f4c33133;
}
body:is(.task-settings,.task-addressbook):not(.action-print) .custom-file-input:focus~.custom-file-label {
  border-color:#b99000;
  box-shadow:0 0 0 3px #f4c33133;
}
body:is(.task-settings,.task-addressbook):not(.action-print) .formbuttons {
  padding:14px 24px;
  border-top:1px solid #eceef1;
  background:#fff;
}
body:is(.task-settings,.task-addressbook):not(.action-print) .btn {
  border-radius:9px;
  min-height:36px;
  padding:7px 15px;
  font-size:14px;
  font-weight:500;
  line-height:20px;
}
body:is(.task-settings,.task-addressbook):not(.action-print) .btn-primary {
  background:#ffdb4d!important;
  border-color:#ffdb4d!important;
  color:#262a30!important;
  box-shadow:none;
}
body:is(.task-settings,.task-addressbook):not(.action-print) .btn-primary:hover:not(:disabled):not(.disabled) {
  background:#f5ce36!important;
  border-color:#f5ce36!important;
}
body:is(.task-settings,.task-addressbook):not(.action-print) .btn-secondary {
  background:#f0f1f4;
  border-color:#f0f1f4;
  color:#353b45;
}
body:is(.task-settings,.task-addressbook):not(.action-print) :is(.nav-tabs,.ui-tabs-nav) {
  border-bottom:1px solid #e9ebef;
  gap:4px;
  margin-bottom:18px;
}
body:is(.task-settings,.task-addressbook):not(.action-print) .nav-tabs .nav-link,
body:is(.task-settings,.task-addressbook):not(.action-print) .ui-tabs-nav li>a {
  border-radius:8px 8px 0 0;
  color:#69717e;
  padding:9px 13px;
  font-size:14px;
  line-height:20px;
}
body:is(.task-settings,.task-addressbook):not(.action-print) .nav-tabs .nav-link.active,
body:is(.task-settings,.task-addressbook):not(.action-print) .ui-tabs-nav .ui-tabs-active>a {
  border-color:transparent transparent #e0b21a;
  background:#fff9e5;
  color:var(--ms-text,#202124);
  font-weight:600;
}
body.task-addressbook:not(.action-print) .contact-header {
  padding-bottom:20px;
  margin-bottom:20px;
  border-bottom:1px solid #eceef1;
  gap:16px;
}
body.task-addressbook:not(.action-print) .contact-header .contact-head {
  min-width:0;
  margin-left:0;
}
body.task-addressbook:not(.action-print) .contact-photo {
  flex:0 0 72px;
  min-width:72px;
}
body.task-addressbook:not(.action-print) .contact-photo img {
  max-width:72px;
  max-height:72px;
  border-radius:50%;
}
body:is(.task-settings,.task-addressbook):not(.action-print) .ui-dialog {
  border:1px solid #e9ebef;
  background:#fff;
  color:var(--ms-text,#202124);
  border-radius:14px;
  box-shadow:0 12px 45px #20212426;
}
body:is(.task-settings,.task-addressbook):not(.action-print) .ui-dialog .ui-dialog-titlebar {
  border:0;
  border-bottom:1px solid #eceef1;
  background:#fff;
  color:var(--ms-text,#202124);
  font-size:16px;
  font-weight:600;
}
body:is(.task-settings,.task-addressbook):not(.action-print) :is(.ui-dialog-buttonpane,.popover) {
  border-color:#e9ebef;
  background:#fff;
}
body:is(.task-settings,.task-addressbook):not(.action-print) .popupmenu .listing li.selected>a {
  background:#fff4ce!important;
  color:var(--ms-text,#202124)!important;
}
body:is(.task-settings,.task-addressbook):not(.action-print) :is(a,button):focus-visible {
  outline:2px solid #b99000;
  outline-offset:2px;
}
@media (min-width:1025px) {
  body:is(.task-settings,.task-addressbook):not(.action-print) #layout-content>.header {
    padding-inline:18px;
  }
  body:is(.task-settings,.task-addressbook):not(.action-print) #layout-sidebar>.header {
    padding-inline:22px;
  }
}
@media (max-width:575px) {
  body:is(.task-settings,.task-addressbook):not(.action-print) .formcontent:not(.popupmenu) {
    padding:16px;
  }
  body:is(.task-settings,.task-addressbook):not(.action-print) .formbuttons {
    padding:12px 16px;
  }
  body:is(.task-settings,.task-addressbook):not(.action-print) .formcontent legend {
    font-size:15px;
  }
  body.task-addressbook:not(.action-print) .contact-header {
    gap:12px;
    padding-bottom:16px;
    margin-bottom:16px;
  }
  body.task-addressbook:not(.action-print) .contact-photo {
    flex-basis:56px;
    min-width:56px;
  }
  body.task-addressbook:not(.action-print) .contact-photo img {
    max-width:56px;
    max-height:56px;
  }
  body:is(.task-settings,.task-addressbook):not(.action-print) :is(.nav-tabs,.ui-tabs-nav) {
    gap:0;
  }
  body:is(.task-settings,.task-addressbook):not(.action-print) .nav-tabs .nav-link,
  body:is(.task-settings,.task-addressbook):not(.action-print) .ui-tabs-nav li>a {
    padding:8px;
    font-size:13px;
  }
}
