/* The same review navigation layout in meeting and private individual logs. */
@supports (width: 1cqi) {
  #drawer.review-page,
  .main-area:has(.il-review-editor) {
    container-type:inline-size;
  }
  :root :is(#reviewWorkspace .review-head,.il-parity-workspace .il-review-editor .il-review-heading) {
    /* The editor is centered. Fill its outer panel without shifting the
       heading or actions out of alignment with the form. */
    --review-header-gutter:max(0px, calc((100cqi - 100%) / 2));
    margin-inline:calc(-1 * var(--review-header-gutter));
    padding-inline:var(--review-header-gutter);
  }
}

:root :is(#reviewWorkspace .review-head,.il-parity-workspace .il-review-editor .il-review-heading) {
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}
:root :is(#reviewWorkspace .review-head,.il-parity-workspace .il-review-editor .il-review-heading)>div:first-child {
  min-width:0;
}
:root .il-parity-workspace .il-review-editor .il-review-heading {
  position:sticky;
  top:64px;
  z-index:3;
  padding-top:20px;
  background:var(--il-surface);
  scroll-margin-top:64px;
}
:root .il-parity-workspace .il-review-editor .il-review-heading h2 {
  scroll-margin-top:90px;
}
:root :is(#reviewWorkspace .review-actions,.il-parity-workspace .il-review-editor .il-review-heading-actions) {
  display:flex;
  flex:0 0 auto;
  flex-direction:row;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:nowrap;
  width:auto;
  max-width:100%;
  margin-left:auto;
  gap:8px;
}
@media(max-width:1000px) {
  :root :is(#reviewWorkspace .review-head,.il-parity-workspace .il-review-editor .il-review-heading) {
    flex-direction:column;
    align-items:stretch;
    gap:12px;
  }
  :root :is(#reviewWorkspace .review-actions,.il-parity-workspace .il-review-editor .il-review-heading-actions) {
    width:100%;
  }
}
@media(max-width:740px) {
  :root :is(#reviewWorkspace .review-head,.il-parity-workspace .il-review-editor .il-review-heading) {
    gap:14px;
  }
  :root :is(#reviewWorkspace .review-actions,.il-parity-workspace .il-review-editor .il-review-heading-actions) {
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px 44px;
    align-items:center;
    justify-content:end;
    gap:8px;
  }
  :root .il-parity-workspace .il-review-editor .il-review-heading-actions {
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px;
  }
  :root :is(#reviewWorkspace #prevReview,.il-parity-workspace .il-review-heading-actions [data-il-edit-prev]) {
    grid-column:1;
    grid-row:2;
  }
  :root :is(#reviewWorkspace #saveDraft,.il-parity-workspace .il-review-heading-actions [data-il-save-draft]) {
    grid-column:2;
    grid-row:2;
  }
  :root :is(#reviewWorkspace #nextReview,.il-parity-workspace .il-review-heading-actions>button[type="submit"]) {
    grid-column:1/3;
    grid-row:1;
    min-height:44px;
    width:100%;
  }
  :root :is(#reviewWorkspace #prevReview,#reviewWorkspace #saveDraft,.il-parity-workspace .il-review-heading-actions [data-il-edit-prev],.il-parity-workspace .il-review-heading-actions [data-il-save-draft]) {
    width:100%;
    min-height:40px;
    padding:8px;
    font-size:12px!important;
    white-space:nowrap;
  }
  :root .il-parity-workspace .il-review-heading-actions [data-il-edit-cancel] {
    grid-column:3;
    grid-row:1;
    width:44px;
    min-width:44px;
    height:44px;
  }
}
@media(max-width:380px) {
  :root :is(#reviewWorkspace .review-actions,.il-parity-workspace .il-review-editor .il-review-heading-actions) {
    gap:6px;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) 40px 40px;
  }
  :root .il-parity-workspace .il-review-editor .il-review-heading-actions {
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) 40px;
  }
  :root .il-parity-workspace .il-review-heading-actions [data-il-edit-cancel] {
    width:40px;
    min-width:40px;
  }
}
